Fix unit tests

This commit is contained in:
Mark Haines 2016-09-12 10:46:02 +01:00
parent 3ddec016ff
commit ec609f8094
6 changed files with 30 additions and 15 deletions

View file

@ -1180,7 +1180,7 @@ def get_access_token_from_request(request, token_not_found_http_status=401):
auth_headers = request.requestHeaders.getRawHeaders("Authorization")
query_params = request.args.get("access_token")
if auth_headers is not None:
if auth_headers:
# Try the get the access_token from a "Authorization: Bearer"
# header
if query_params is not None: