Work around ingress glitch with 304 responses (#63355)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>pull/63441/head
parent
626ae7be9b
commit
32933b2c6b
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue