mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
daemon: Add Bearer to the auth header if we're overriding the token.
This commit is contained in:
parent
29a49ba120
commit
400c299187
@ -273,7 +273,7 @@ class ProxyDaemon:
|
||||
|
||||
if token:
|
||||
if "Authorization" in headers:
|
||||
headers["Authorization"] = token
|
||||
headers["Authorization"] = f"Bearer {token}"
|
||||
if "access_token" in params:
|
||||
params["access_token"] = token
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user