Fix PONG response: Messages params are not decoded
This commit is contained in:
parent
85ec2dcd01
commit
028b7fd88d
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ class MessageConsumer:
|
||||||
self.srv._on_connect()
|
self.srv._on_connect()
|
||||||
|
|
||||||
elif msg.cmd == "PING":
|
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:
|
else:
|
||||||
for h in hm.get_hooks("in", msg.cmd, msg.qual):
|
for h in hm.get_hooks("in", msg.cmd, msg.qual):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue