mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
Fix handling with Firefox (#1041)
This commit is contained in:
parent
3ed7cbe2ed
commit
963d242afa
@ -209,7 +209,7 @@ def _is_websocket(request: web.Request) -> bool:
|
||||
headers = request.headers
|
||||
|
||||
if (
|
||||
headers.get(hdrs.CONNECTION, "").lower() == "upgrade"
|
||||
"upgrade" in headers.get(hdrs.CONNECTION, "").lower()
|
||||
and headers.get(hdrs.UPGRADE, "").lower() == "websocket"
|
||||
):
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user