oops again :)

This commit is contained in:
Kovid Goyal 2015-10-26 15:26:38 +05:30
parent 3beffa6a40
commit c9adbebe7f

View File

@ -320,7 +320,7 @@ class WebSocketConnection(HTTPConnection):
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