diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-09-12 10:46:02 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-09-12 10:46:02 +0100 |
commit | ec609f80949972327274142e4eb5b506f55aba1a (patch) | |
tree | c87745ad5255dc595ddc859913b52f13ad57ef06 /synapse/api/auth.py | |
parent | Merge branch 'develop' into markjh/bearer_token (diff) | |
download | synapse-ec609f80949972327274142e4eb5b506f55aba1a.tar.xz |
Fix unit tests
Diffstat (limited to '')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index d8856b8193..5029f7c534 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -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: |