From 01e1878900f9206f7672b2f8a6fcfc28dbed5166 Mon Sep 17 00:00:00 2001 From: Tobias Friemel Date: Mon, 23 Dec 2013 16:19:49 +0100 Subject: Fix X-FACEBOOK-PLATFORM authentication in Python3. --- sleekxmpp/util/sasl/mechanisms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/util') 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'' -- cgit v1.2.3