Cleanup not needed websocket flags for ingress (#28295)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2019-10-29 16:16:10 -07:00
1 parent 070790ccc9
commit f021e5832a
1 file changed
+8 -1
+8 -1
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