mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Fix content_type handling ingress (#22864)
This commit is contained in:
parent
4982c0b196
commit
2d287d2abe
@ -118,6 +118,7 @@ class HassIOIngress(HomeAssistantView):
|
|||||||
return web.Response(
|
return web.Response(
|
||||||
headers=headers,
|
headers=headers,
|
||||||
status=result.status,
|
status=result.status,
|
||||||
|
content_type=result.content_type,
|
||||||
body=body
|
body=body
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -145,8 +146,7 @@ def _init_header(
|
|||||||
|
|
||||||
# filter flags
|
# filter flags
|
||||||
for name, value in request.headers.items():
|
for name, value in request.headers.items():
|
||||||
if name in (hdrs.CONTENT_LENGTH, hdrs.CONTENT_TYPE,
|
if name in (hdrs.CONTENT_LENGTH, hdrs.CONTENT_ENCODING):
|
||||||
hdrs.CONTENT_ENCODING):
|
|
||||||
continue
|
continue
|
||||||
headers[name] = value
|
headers[name] = value
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user