From 028b7fd88db9d18af98cf9ba5468017c10ba96d4 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Fri, 5 Sep 2014 01:48:01 +0200 Subject: [PATCH] Fix PONG response: Messages params are not decoded --- consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consumer.py b/consumer.py index 4a94c2c..025757e 100644 --- a/consumer.py +++ b/consumer.py @@ -124,7 +124,7 @@ class MessageConsumer: self.srv._on_connect() elif msg.cmd == "PING": - self.srv.write("%s :%s" % ("PONG", msg.params[0])) + self.srv.write("%s :%s" % ("PONG", msg.decode(msg.params[0]))) else: for h in hm.get_hooks("in", msg.cmd, msg.qual):