Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Commit

Permalink
fixed auth header entity missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
bcho committed Sep 29, 2013
1 parent 0f8eb09 commit ff74365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/views/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def __call__(self, func):
@wraps(func)
def check_auth(*args, **kwargs):
me = api.Me()
username = request.headers['X-LIBRARY-USERNAME']
password = request.headers['X-LIBRARY-PASSWORD']
username = request.headers.get('X-LIBRARY-USERNAME')
password = request.headers.get('X-LIBRARY-PASSWORD')

try:
cookies = me.login(username, password)
Expand Down

0 comments on commit ff74365

Please sign in to comment.