Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
8a088b79
Commit
8a088b79
authored
Mar 20, 2009
by
Guido Trotter
Browse files
Fix _NOQUOTE regexp
Allow expressions longer than one character to match. Reviewed-by: imsnah
parent
53d47a06
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/http/auth.py
View file @
8a088b79
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment