Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #5 from jacobian/patch-1
Browse files Browse the repository at this point in the history
Fix request_access_token to understand content-type with charsets
  • Loading branch information
dahlia committed Jun 10, 2013
2 parents 57508cc + 3db0a37 commit 0f6a21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsgioauth2.py
Expand Up @@ -283,7 +283,7 @@ def request_access_token(self, redirect_uri, code):
'grant_type': 'authorization_code'}
u = urllib2.urlopen(self.service.access_token_endpoint,
data=urllib.urlencode(form))
content_type = u.info().get('Content-Type')
content_type = u.info().gettype()
if content_type == 'application/json':
data = json.load(u)
else:
Expand Down

0 comments on commit 0f6a21b

Please sign in to comment.