fix type error

fix the type error so that logging works correctly
This commit is contained in:
Marlus Lopes Tavares 2021-01-06 01:58:31 -03:00 committed by GitHub
parent 003660b70b
commit bed2949d49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ if ('Worker' in locals() and 'PyWSGIHandler' in locals() and
class GunicornWebSocketHandler(PyWSGIHandler, WebSocketHandler):
def log_request(self):
if '101' not in self.status:
if '101' not in str(self.status):
super(GunicornWebSocketHandler, self).log_request()
Worker.wsgi_handler = GunicornWebSocketHandler