Fix handling with Firefox (#1041)

This commit is contained in:
Pascal Vizeli 2019-04-15 18:09:13 +02:00 committed by GitHub
parent 3ed7cbe2ed
commit 963d242afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ def _is_websocket(request: web.Request) -> bool:
headers = request.headers headers = request.headers
if ( if (
headers.get(hdrs.CONNECTION, "").lower() == "upgrade" "upgrade" in headers.get(hdrs.CONNECTION, "").lower()
and headers.get(hdrs.UPGRADE, "").lower() == "websocket" and headers.get(hdrs.UPGRADE, "").lower() == "websocket"
): ):
return True return True