提交 4b83c206 编写于 作者: R Roger A. Light

Don't attempt to encode topic to utf-8 twice.

Thanks to Luc Milland.

Change-Id: I954db79a6cf332350337c5147ac716cb3e6c4e2a
上级 849cd83d
......@@ -4,6 +4,7 @@ v1.0.2
- Fix "protocol" not being used in publish.single()
- Fix Client constructor for the case where "localhost" is unresolvable.
Closes #439277.
- Don't attempt to encode topic to utf-8 twice.
v1.0.1
======
......
......@@ -1656,7 +1656,7 @@ class Client(object):
remaining_length = remaining_length + 2
self._pack_remaining_length(packet, remaining_length)
self._pack_str16(packet, utopic)
self._pack_str16(packet, topic)
if qos > 0:
# For message id
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册