Skip to content

Commit 75b5de6

Browse files
committed
cleaned up app.py
1 parent 3853480 commit 75b5de6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def middlewares():
8080
if auth_header.startswith("Bearer "):
8181
token = auth_header.split(" ", 1)[1]
8282

83-
token = unquote(token)
84-
8583
if token != API_TOKEN:
8684
infoLog(f"Client failed Bearer Auth [token: {token}]")
8785
return UnauthorizedResponse()
@@ -90,9 +88,6 @@ def middlewares():
9088
decoded = base64.b64decode(auth_header.split(" ", 1)[1]).decode()
9189
username, password = decoded.split(":", 1)
9290

93-
username = unquote(username)
94-
password = unquote(password)
95-
9691
if username != "api" or password != API_TOKEN:
9792
infoLog(f"Client failed Basic Auth [user: {username}, pw:{password}]")
9893
return UnauthorizedResponse()

0 commit comments

Comments
 (0)