daemon: Add Bearer to the auth header if we're overriding the token.

This commit is contained in:
Damir Jelić 2019-05-07 18:36:05 +02:00
parent 29a49ba120
commit 400c299187

View File

@ -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