Update gevent-ws to v2.0.7 to fix werkzeug

This commit is contained in:
Ivanq 2020-03-17 23:48:36 +03:00
parent 5fb342a825
commit 66194ce435

View file

@ -257,12 +257,18 @@ class WebSocketHandler(WSGIHandler):
finally:
self.time_finish = time.time()
self.log_request()
self.close_connection = True
def process_result(self):
if "wsgi.websocket" not in self.environ:
if "wsgi.websocket" in self.environ:
# Flushing result is required for werkzeug compatibility
for elem in self.result:
pass
else:
super(WebSocketHandler, self).process_result()
@property
def version(self):
if not self.environ: