From 0e71d2713254094420200cc437c9f5fc6baf885d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= Date: Mon, 25 Sep 2023 19:46:14 +0200 Subject: [PATCH] fix(response): remove encoded_headers default value (#2364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --- litestar/response/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litestar/response/base.py b/litestar/response/base.py index b518075446..7823902615 100644 --- a/litestar/response/base.py +++ b/litestar/response/base.py @@ -443,7 +443,7 @@ def to_asgi_response( background=self.background or background, body=self.render(self.content, media_type, get_serializer(type_encoders)), cookies=cookies, - encoded_headers=encoded_headers or [], + encoded_headers=encoded_headers, encoding=self.encoding, headers=headers, is_head_response=is_head_response,