Skip to content

Commit

Permalink
fix: avoid change to app code
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Sep 29, 2024
1 parent 6472075 commit 2c4ab8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions falcon/asgi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,7 @@ async def __call__( # type: ignore[override] # noqa: C901
)

if serialize_sync:
resp._media_rendered = serialize_sync(
resp._media, resp.content_type
)
resp._media_rendered = serialize_sync(resp._media)
else:
resp._media_rendered = await handler.serialize_async(
resp._media, resp.content_type
Expand Down

0 comments on commit 2c4ab8f

Please sign in to comment.