mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:06:05 -04:00
Fix unit tests
This commit is contained in:
parent
3ddec016ff
commit
ec609f8094
6 changed files with 30 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue