mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Work around ingress glitch with 304 responses (#63355)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
626ae7be9b
commit
32933b2c6b
@ -134,7 +134,7 @@ class HassIOIngress(HomeAssistantView):
|
|||||||
if (
|
if (
|
||||||
hdrs.CONTENT_LENGTH in result.headers
|
hdrs.CONTENT_LENGTH in result.headers
|
||||||
and int(result.headers.get(hdrs.CONTENT_LENGTH, 0)) < 4194000
|
and int(result.headers.get(hdrs.CONTENT_LENGTH, 0)) < 4194000
|
||||||
):
|
) or result.status in (204, 304):
|
||||||
# Return Response
|
# Return Response
|
||||||
body = await result.read()
|
body = await result.read()
|
||||||
return web.Response(
|
return web.Response(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user