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 17:04:43 -05:00 committed by Paulus Schoutsen
parent 4d9d186ddf
commit 9126125e16

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(