1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00

Cleanup not needed websocket flags for ingress (#28295)

This commit is contained in:
Pascal Vizeli 2019-10-29 12:05:05 +01:00 committed by GitHub
parent 502f59977a
commit c00b058e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,14 @@ def _init_header(
# filter flags
for name, value in request.headers.items():
if name in (hdrs.CONTENT_LENGTH, hdrs.CONTENT_ENCODING):
if name in (
hdrs.CONTENT_LENGTH,
hdrs.CONTENT_ENCODING,
hdrs.SEC_WEBSOCKET_EXTENSIONS,
hdrs.SEC_WEBSOCKET_PROTOCOL,
hdrs.SEC_WEBSOCKET_VERSION,
hdrs.SEC_WEBSOCKET_KEY,
):
continue
headers[name] = value