From ac239ec4ee71e7ef7551d997573172e366f1c9b2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 20 May 2015 14:54:41 -0400 Subject: [PATCH] Make sure to only split into two parts max --- util/headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/headers.py b/util/headers.py index 8967dfaa7..353cc61dc 100644 --- a/util/headers.py +++ b/util/headers.py @@ -11,7 +11,7 @@ def parse_basic_auth(header_value): return None try: - basic_parts = base64.b64decode(parts[1]).split(':') + basic_parts = base64.b64decode(parts[1]).split(':', 1) if len(basic_parts) != 2: return None