Work around ingress glitch with 304 responses (#63355)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Christopher Masto
2022-01-04 14:04:43 -08:00
committed by GitHub
co-authored by Paulus Schoutsen
parent 626ae7be9b
commit 32933b2c6b
+1 -1
View File
@@ -134,7 +134,7 @@ class HassIOIngress(HomeAssistantView):
if (
hdrs.CONTENT_LENGTH in result.headers
and int(result.headers.get(hdrs.CONTENT_LENGTH, 0)) < 4194000
):
) or result.status in (204, 304):
# Return Response
body = await result.read()
return web.Response(