[Python-modules-commits] [python-social-auth] 01/131: Fixed 401 client redirect error for reddit backend
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:16:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.20
in repository python-social-auth.
commit 41551fc1af6d8dff896460657a51b8e729a599a6
Author: opaqe <johnny.df.lau at gmail.com>
Date: Sat Oct 24 07:34:54 2015 -0400
Fixed 401 client redirect error for reddit backend
---
social/backends/.reddit.py.swp | Bin 0 -> 12288 bytes
social/backends/reddit.py | 6 +++---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/social/backends/.reddit.py.swp b/social/backends/.reddit.py.swp
new file mode 100644
index 0000000..ee52624
Binary files /dev/null and b/social/backends/.reddit.py.swp differ
diff --git a/social/backends/reddit.py b/social/backends/reddit.py
index 62ac42c..712bdfb 100644
--- a/social/backends/reddit.py
+++ b/social/backends/reddit.py
@@ -42,9 +42,9 @@ class RedditOAuth2(BaseOAuth2):
def auth_headers(self):
return {
- 'Authorization': 'Basic {0}'.format(base64.urlsafe_b64encode(
- ('{0}:{1}'.format(*self.get_key_and_secret()).encode())
- ))
+ 'Authorization': b'Basic ' + base64.urlsafe_b64encode(
+ '{0}:{1}'.format(*self.get_key_and_secret()).encode()
+ )
}
def refresh_token_params(self, token, redirect_uri=None, *args, **kwargs):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list