Permalink
Browse files

fix websockets supports.

Thanks Nikolay Kim for the tests and patch.
  • Loading branch information...
1 parent ff1dfa1 commit 573ad019d1d3f0d690d01bf87b6d29d967405f62 @benoitc benoitc committed Mar 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 gunicorn/http/wsgi.py
View
@@ -195,6 +195,9 @@ def process_headers(self, headers):
# handle websocket
if value.lower().strip() == "upgrade":
self.upgrade = True
+ elif lname == "upgrade":
+ if value.lower().strip() == "websocket":
+ self.headers.append((name.strip(), str(value).strip()))
# ignore hopbyhop headers
continue

0 comments on commit 573ad01

Please sign in to comment.