Skip to content

Commit 307b2df

Browse files
committed
Eliminate a protocol error when first chunk is last too.
1 parent 52d04b9 commit 307b2df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ws4py/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def send(self, payload, binary=False):
308308
bytes = chunk
309309
first = False
310310

311-
self._write(message_sender(bytes).fragment(last=True, mask=self.stream.always_mask))
311+
self._write(message_sender(bytes).fragment(first=first, last=True, mask=self.stream.always_mask))
312312

313313
else:
314314
raise ValueError("Unsupported type '%s' passed to send()" % type(payload))

0 commit comments

Comments
 (0)