mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:43:48 +02:00
oops again :)
This commit is contained in:
parent
3beffa6a40
commit
c9adbebe7f
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ def ws_data_received(self, data, opcode, frame_starting, frame_finished, is_fina
|
|||
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame without any message to continue')
|
||||
return
|
||||
self.current_recv_opcode = opcode
|
||||
elif opcode != CONTINUATION:
|
||||
elif frame_starting and opcode != CONTINUATION:
|
||||
self.log.error('Client sent continuation frame with non-zero opcode')
|
||||
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame with non-zero opcode')
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue