diff options
author | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:18:54 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:18:54 -0800 |
commit | 84a6ed8e804306df1a8fcd77cc4c03c5122a4abb (patch) | |
tree | 90ab90fcbf844151d8e90300e265d6679060f76e | |
parent | d9db1b84fe03ff92653afede1c2f1da4f0868fe4 (diff) | |
parent | 01e1878900f9206f7672b2f8a6fcfc28dbed5166 (diff) | |
download | slixmpp-84a6ed8e804306df1a8fcd77cc4c03c5122a4abb.tar.gz slixmpp-84a6ed8e804306df1a8fcd77cc4c03c5122a4abb.tar.bz2 slixmpp-84a6ed8e804306df1a8fcd77cc4c03c5122a4abb.tar.xz slixmpp-84a6ed8e804306df1a8fcd77cc4c03c5122a4abb.zip |
Merge pull request #272 from tfriem/develop
Fix X-FACEBOOK-PLATFORM authentication in Python3.
-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'' |