diff options
author | Tobias Friemel <tfriem@gmail.com> | 2013-12-23 16:19:49 +0100 |
---|---|---|
committer | Tobias Friemel <tfriem@gmail.com> | 2013-12-23 16:19:49 +0100 |
commit | 01e1878900f9206f7672b2f8a6fcfc28dbed5166 (patch) | |
tree | 842b6443a8faea6e8bf9b46ca1bc2d5cfa3658b6 /sleekxmpp/util/sasl/mechanisms.py | |
parent | df9ad823360dd7fd8472d05d072bc4529819ddaa (diff) | |
download | slixmpp-01e1878900f9206f7672b2f8a6fcfc28dbed5166.tar.gz slixmpp-01e1878900f9206f7672b2f8a6fcfc28dbed5166.tar.bz2 slixmpp-01e1878900f9206f7672b2f8a6fcfc28dbed5166.tar.xz slixmpp-01e1878900f9206f7672b2f8a6fcfc28dbed5166.zip |
Fix X-FACEBOOK-PLATFORM authentication in Python3.
Diffstat (limited to 'sleekxmpp/util/sasl/mechanisms.py')
-rw-r--r-- | sleekxmpp/util/sasl/mechanisms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/util/sasl/mechanisms.py b/sleekxmpp/util/sasl/mechanisms.py index 1eb6af83..523eabc2 100644 --- a/sleekxmpp/util/sasl/mechanisms.py +++ b/sleekxmpp/util/sasl/mechanisms.py @@ -111,7 +111,7 @@ class X_FACEBOOK_PLATFORM(Mech): b'api_key': self.credentials['api_key'] } - resp = '&'.join(['%s=%s' % (k, v) for k, v in resp_data.items()]) + resp = '&'.join(['%s=%s' % (k.decode("utf-8"), v.decode("utf-8")) for k, v in resp_data.items()]) return bytes(resp) return b'' |