Work around ingress glitch with 304 responses (#63355)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
pull/63441/head
Christopher Masto 2022-01-04 17:04:43 -05:00 committed by GitHub
parent 626ae7be9b
commit 32933b2c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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(