Skip to content

Commit fd02184

Browse files
committed
fix[stac_fastapi.core]: await request.body() coroutine
1 parent d318e59 commit fd02184

File tree

1 file changed

+1
-1
lines changed
  • stac_fastapi/core/stac_fastapi/core

1 file changed

+1
-1
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ async def post_search(
759759

760760
body_limit = None
761761
try:
762-
if request.method == "POST" and request.body():
762+
if request.method == "POST" and await request.body():
763763
body_data = await request.json()
764764
body_limit = body_data.get("limit")
765765
except Exception:

0 commit comments

Comments
 (0)