We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b53cab commit 2da2a26Copy full SHA for 2da2a26
src/stac_auth_proxy/middleware/BuildCql2FilterMiddleware.py
@@ -53,14 +53,17 @@ async def set_filter(body: Optional[dict] = None) -> None:
53
setattr(request.state, self.state_key, cql2_filter)
54
55
# For GET requests, we can build the filter immediately
56
- # NOTE: It appears that FastAPI will not call receive function for GET requests
57
if request.method == "GET":
58
await set_filter()
59
return await self.app(scope, receive, send)
60
61
total_body = b""
62
63
async def receive_build_filter() -> Message:
+ """
64
+ Receive the body of the request and build the filter.
65
+ NOTE: This is not called for GET requests.
66
67
nonlocal total_body
68
69
message = await receive()
0 commit comments