Fix bad reset of fragmented frame
The Python 2/3 binary data type compatibility hack was backwards here.
This commit is contained in:
parent
e5b6dfe17f
commit
9b1780f068
|
@ -569,7 +569,7 @@ class WebSocket(object):
|
||||||
|
|
||||||
if frame["fin"]:
|
if frame["fin"]:
|
||||||
msg = self._partial_msg
|
msg = self._partial_msg
|
||||||
self._partial_msg = ''.decode("ascii")
|
self._partial_msg = ''.encode("ascii")
|
||||||
return msg
|
return msg
|
||||||
elif frame["opcode"] == 0x1:
|
elif frame["opcode"] == 0x1:
|
||||||
self.shutdown(socket.SHUT_RDWR, 1003, "Unsupported: Text frames are not supported")
|
self.shutdown(socket.SHUT_RDWR, 1003, "Unsupported: Text frames are not supported")
|
||||||
|
|
Loading…
Reference in New Issue