Disable process_result on websocket requests

This commit is contained in:
Ivanq 2020-03-14 07:27:19 +03:00
parent 53a6063576
commit 19f003141b
1 changed files with 5 additions and 0 deletions

View File

@ -254,3 +254,8 @@ class WebSocketHandler(WSGIHandler):
finally:
self.time_finish = time.time()
self.log_request()
def process_result(self):
if "wsgi.websocket" not in self.environ:
super(WebSocketHandler, self).process_result()