diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index 68cbb97..f8fa159 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -418,7 +418,9 @@ class ProxyDaemon: access_token = request.query.get("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