Skip to content
Snippets Groups Projects
Commit b795f1c1 authored by Ben Adida's avatar Ben Adida
Browse files

fix python3-related bytes-to-string conversion in google auth

parent 0075e5ab
Branches
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ def get_user_info_after_auth(request): ...@@ -49,7 +49,7 @@ def get_user_info_after_auth(request):
http = credentials.authorize(http) http = credentials.authorize(http)
(resp_headers, content) = http.request("https://people.googleapis.com/v1/people/me?personFields=names", "GET") (resp_headers, content) = http.request("https://people.googleapis.com/v1/people/me?personFields=names", "GET")
response = utils.from_json(content) response = utils.from_json(content.decode('utf-8'))
name = response['names'][0]['displayName'] name = response['names'][0]['displayName']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment