From 32933b2c6bc825e46e7a3897d15d7b264c24edc0 Mon Sep 17 00:00:00 2001 From: Christopher Masto Date: Tue, 4 Jan 2022 17:04:43 -0500 Subject: [PATCH] Work around ingress glitch with 304 responses (#63355) Co-authored-by: Paulus Schoutsen --- homeassistant/components/hassio/ingress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hassio/ingress.py b/homeassistant/components/hassio/ingress.py index 6935bbdc7da..5369089d0f0 100644 --- a/homeassistant/components/hassio/ingress.py +++ b/homeassistant/components/hassio/ingress.py @@ -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(