Skip to content

Commit 2da2a26

Browse files
committed
docs: reorg comments
1 parent 0b53cab commit 2da2a26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/stac_auth_proxy/middleware/BuildCql2FilterMiddleware.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,17 @@ async def set_filter(body: Optional[dict] = None) -> None:
5353
setattr(request.state, self.state_key, cql2_filter)
5454

5555
# For GET requests, we can build the filter immediately
56-
# NOTE: It appears that FastAPI will not call receive function for GET requests
5756
if request.method == "GET":
5857
await set_filter()
5958
return await self.app(scope, receive, send)
6059

6160
total_body = b""
6261

6362
async def receive_build_filter() -> Message:
63+
"""
64+
Receive the body of the request and build the filter.
65+
NOTE: This is not called for GET requests.
66+
"""
6467
nonlocal total_body
6568

6669
message = await receive()

0 commit comments

Comments
 (0)