]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Send the data of the ping frame back in the pong, as specified.
authorFlorian Diebold <flodiebold@gmail.com>
Sun, 17 Jul 2011 19:25:05 +0000 (21:25 +0200)
committerFlorian Diebold <flodiebold@gmail.com>
Sun, 17 Jul 2011 19:25:05 +0000 (21:25 +0200)
tornado/websocket.py

index f23da07a202c3f197c8428b8f663f35cfeb3bcf3..d9c779a6e9de0e632dc8477aceff9ab32697ac4f 100644 (file)
@@ -480,7 +480,7 @@ class WebSocketProtocol8(WebSocketProtocol):
             self.stream.close()
         elif opcode == 0x9:
             # Ping
-            self._write_frame(True, 0xA, b(""))
+            self._write_frame(True, 0xA, data)
         elif opcode == 0xA:
             # Pong
             pass