Forgot that Upgrade is case-insensitive
This commit is contained in:
parent
a1c176bb3f
commit
a2457b2488
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ class WebSocketHandler(WSGIHandler):
|
||||||
self.response_length = 0
|
self.response_length = 0
|
||||||
|
|
||||||
|
|
||||||
http_connection = [s.strip() for s in self.environ.get("HTTP_CONNECTION", "").split(",")]
|
http_connection = [s.strip().lower() for s in self.environ.get("HTTP_CONNECTION", "").split(",")]
|
||||||
if "Upgrade" not in http_connection or self.environ.get("HTTP_UPGRADE", "") != "websocket":
|
if "upgrade" not in http_connection or self.environ.get("HTTP_UPGRADE", "") != "websocket":
|
||||||
# Not my problem
|
# Not my problem
|
||||||
return super(WebSocketHandler, self).handle_one_response()
|
return super(WebSocketHandler, self).handle_one_response()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue