From 2169e1beb94d2e46baffa0c5fd0bac9e4b39e1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Mart=C3=ADnez?= Date: Wed, 2 Jul 2014 23:11:51 +0200 Subject: [PATCH] Fix binary websocket connections --- tornado/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index b3349988..78f1a37b 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -586,7 +586,7 @@ class WebSocketProtocol13(WebSocketProtocol): self._run_callback(self.handler.on_message, decoded) elif opcode == 0x2: # Binary data - self._run_callback(self.handler.on_message, decoded) + self._run_callback(self.handler.on_message, data) elif opcode == 0x8: # Close self.client_terminated = True