Log websocket bad protocol version
This commit is contained in:
parent
eac475d13f
commit
3d081f6a59
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class WebSocketHandler(WSGIHandler):
|
||||||
|
|
||||||
if self.request_version != 'HTTP/1.1':
|
if self.request_version != 'HTTP/1.1':
|
||||||
self.start_response('402 Bad Request', [])
|
self.start_response('402 Bad Request', [])
|
||||||
self.logger.warning("Bad server protocol in headers")
|
self.logger.warning("Bad server protocol in headers: %s" % self.request_version)
|
||||||
|
|
||||||
return ['Bad protocol version']
|
return ['Bad protocol version']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue