fix(daemon): Don't use strip to filter Bearer from auth header

Using strip might remove more than what is intended here.
This commit is contained in:
Damir Jelić 2022-02-02 14:44:49 +01:00
parent c89e87c22a
commit e62cfe068a

View File

@ -418,7 +418,9 @@ class ProxyDaemon:
access_token = request.query.get("access_token", "") access_token = request.query.get("access_token", "")
if not access_token: if not access_token:
access_token = request.headers.get("Authorization", "").strip("Bearer ") access_token = request.headers.get("Authorization", "").replace(
"Bearer ", "", 1
)
return access_token return access_token