This commit is contained in:
liris
2014-12-11 09:53:26 +09:00
parent 21c65a6508
commit ab38bf1a1e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
ChangeLog
============
- 0.23.0
- Remove spurious print statement. (#135)
- 0.22.0
- Fix not thread-safe of Websocket.close() (#120)

View File

@@ -121,7 +121,7 @@ class ABNF(object):
raise WebSocketProtocolException("Invalid close frame.")
if l > 2 and not validate_utf8(self.data[2:]):
raise WebSocketProtocolException("Invalid close frame.")
print(self.data)
code = 256*six.byte2int(self.data[0:1]) + six.byte2int(self.data[1:2])
if not self._is_valid_close_status(code):
raise WebSocketProtocolException("Invalid close opcode.")