fixed #135
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
============
|
============
|
||||||
|
|
||||||
|
- 0.23.0
|
||||||
|
|
||||||
|
- Remove spurious print statement. (#135)
|
||||||
|
|
||||||
- 0.22.0
|
- 0.22.0
|
||||||
|
|
||||||
- Fix not thread-safe of Websocket.close() (#120)
|
- Fix not thread-safe of Websocket.close() (#120)
|
||||||
|
@@ -121,7 +121,7 @@ class ABNF(object):
|
|||||||
raise WebSocketProtocolException("Invalid close frame.")
|
raise WebSocketProtocolException("Invalid close frame.")
|
||||||
if l > 2 and not validate_utf8(self.data[2:]):
|
if l > 2 and not validate_utf8(self.data[2:]):
|
||||||
raise WebSocketProtocolException("Invalid close frame.")
|
raise WebSocketProtocolException("Invalid close frame.")
|
||||||
print(self.data)
|
|
||||||
code = 256*six.byte2int(self.data[0:1]) + six.byte2int(self.data[1:2])
|
code = 256*six.byte2int(self.data[0:1]) + six.byte2int(self.data[1:2])
|
||||||
if not self._is_valid_close_status(code):
|
if not self._is_valid_close_status(code):
|
||||||
raise WebSocketProtocolException("Invalid close opcode.")
|
raise WebSocketProtocolException("Invalid close opcode.")
|
||||||
|
Reference in New Issue
Block a user