Fix binary websocket connections

This commit is contained in:
José Martínez 2014-07-02 23:11:51 +02:00
parent 159e10d676
commit 2169e1beb9
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ class WebSocketProtocol13(WebSocketProtocol):
self._run_callback(self.handler.on_message, decoded) self._run_callback(self.handler.on_message, decoded)
elif opcode == 0x2: elif opcode == 0x2:
# Binary data # Binary data
self._run_callback(self.handler.on_message, decoded) self._run_callback(self.handler.on_message, data)
elif opcode == 0x8: elif opcode == 0x8:
# Close # Close
self.client_terminated = True self.client_terminated = True