mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
oops again :)
This commit is contained in:
parent
3beffa6a40
commit
c9adbebe7f
@ -320,7 +320,7 @@ class WebSocketConnection(HTTPConnection):
|
|||||||
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame without any message to continue')
|
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame without any message to continue')
|
||||||
return
|
return
|
||||||
self.current_recv_opcode = opcode
|
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.log.error('Client sent continuation frame with non-zero opcode')
|
||||||
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame with non-zero opcode')
|
self.websocket_close(PROTOCOL_ERROR, 'Continuation frame with non-zero opcode')
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user