From 8a088b79fd80e96d9e15e38d98ff4acc558e2c54 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 20 Mar 2009 13:07:22 +0000
Subject: [PATCH] Fix _NOQUOTE regexp

Allow expressions longer than one character to match.

Reviewed-by: imsnah
---
 lib/http/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http/auth.py b/lib/http/auth.py
index 68fee5782..b9a66a526 100644
--- a/lib/http/auth.py
+++ b/lib/http/auth.py
@@ -40,7 +40,7 @@ HTTP_BASIC_AUTH = "Basic"
 HTTP_DIGEST_AUTH = "Digest"
 
 # Not exactly as described in RFC2616, section 2.2, but good enough
-_NOQUOTE = re.compile(r"^[-_a-z0-9]$", re.I)
+_NOQUOTE = re.compile(r"^[-_a-z0-9]+$", re.I)
 
 
 def _FormatAuthHeader(scheme, params):
-- 
GitLab