We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2934c1 + a2457b2 commit 3426d5fCopy full SHA for 3426d5f
src/lib/gevent_ws/__init__.py
@@ -210,8 +210,8 @@ def handle_one_response(self):
210
self.response_length = 0
211
212
213
- http_connection = [s.strip() for s in self.environ.get("HTTP_CONNECTION", "").split(",")]
214
- if "Upgrade" not in http_connection or self.environ.get("HTTP_UPGRADE", "") != "websocket":
+ 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":
215
# Not my problem
216
return super(WebSocketHandler, self).handle_one_response()
217
0 commit comments