Fix bad reset of fragmented frame

The Python 2/3 binary data type compatibility hack was backwards here.
This commit is contained in:
Pierre Ossman 2020-08-21 10:58:55 +02:00
parent e5b6dfe17f
commit 9b1780f068
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ class WebSocket(object):
if frame["fin"]:
msg = self._partial_msg
self._partial_msg = ''.decode("ascii")
self._partial_msg = ''.encode("ascii")
return msg
elif frame["opcode"] == 0x1:
self.shutdown(socket.SHUT_RDWR, 1003, "Unsupported: Text frames are not supported")