This commit is contained in:
liris
2014-10-15 15:36:38 +09:00
parent 09dd9dc781
commit a188afc884
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ ChangeLog
- Check for socket before attempting to close (#115)
- Enable turning off SSL verification in wsdump.py(#116)
- Enable to set subprotocol(#118)
- Better support for Autobahn test suite (http://autobahn.ws/testsuite) (#117)
- v0.20.0
- fix typo.
- v0.19.0

View File

@@ -720,7 +720,7 @@ class WebSocket(object):
self._cont_data = None
frame.data = data[1]
if not self.fire_cont_frame and data[0] == ABNF.OPCODE_TEXT and not validate_utf8(frame.data):
raise WebSocketProtocolException("cannot decode: " + repr(frame.data))
raise WebSocketPayloadException("cannot decode: " + repr(frame.data))
return [data[0], frame]
elif frame.opcode == ABNF.OPCODE_CLOSE: