mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix websockets supports.
Thanks Nikolay Kim for the tests and patch.
This commit is contained in:
parent
ff1dfa1780
commit
573ad019d1
@ -195,6 +195,9 @@ class Response(object):
|
||||
# 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user