Skip to content

Commit

Permalink
Use correct header for OK auth (#291)
Browse files Browse the repository at this point in the history
* Use correct header for OK auth

* Bump to v1.10.4
  • Loading branch information
Sumukh authored Mar 17, 2017
1 parent fe0cbde commit 494955b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = 'v1.10.3'
__version__ = 'v1.10.4'

FILE_NAME = 'ok'

Expand Down
2 changes: 1 addition & 1 deletion client/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def notebook_get_code(assignment):
def get_info(assignment, access_token):
response = requests.get(
assignment.server_url + INFO_ENDPOINT,
headers={'Authentication': 'Bearer {}'.format(access_token)},
headers={'Authorization': 'Bearer {}'.format(access_token)},
timeout=5)
response.raise_for_status()
return response.json()['data']
Expand Down

0 comments on commit 494955b

Please sign in to comment.