Commit 8a088b79 authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix _NOQUOTE regexp

Allow expressions longer than one character to match.

Reviewed-by: imsnah
parent 53d47a06
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment