From 0f5592452a6e85e49fb681fd843266a6bc17a1dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jul 2019 19:28:43 +0100 Subject: [PATCH] newline replace --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index 02ca68bd9..2ca3b683e 100644 --- a/auth.py +++ b/auth.py @@ -43,7 +43,7 @@ def authorizeBasic(baseDir: str,authHeader: str) -> bool: """ if ' ' not in authHeader: return False - base64Str = authHeader.split(' ')[1] + base64Str = authHeader.split(' ')[1].replace('\n','') plain = base64.b64decode(base64Str).decode('utf8') if ':' not in plain: return False