Forward client headers for proxied stream responses (#41663)

This commit is contained in:
Joakim Sørensen 2020-10-15 11:01:37 +02:00 committed by GitHub
parent 690024b34a
commit 1f07a4eba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -111,7 +111,7 @@ class HassIOView(HomeAssistantView):
)
# Stream response
response = web.StreamResponse(status=client.status)
response = web.StreamResponse(status=client.status, headers=client.headers)
response.content_type = client.content_type
await response.prepare(request)