From 2c4ab8fe85bab856e479270a19c71ebd3a8452d6 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Sun, 29 Sep 2024 20:46:10 +0200 Subject: [PATCH] fix: avoid change to app code --- falcon/asgi/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/falcon/asgi/app.py b/falcon/asgi/app.py index dca7afd96..d28c8c49a 100644 --- a/falcon/asgi/app.py +++ b/falcon/asgi/app.py @@ -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