Fix bug in HTTP-digest auth w/ URI having query string

This commit is contained in:
Tom Moertel
2012-01-10 18:09:49 -05:00
parent 6af6a08b7a
commit 79f5d532c6
+3 -1
View File
@@ -86,7 +86,9 @@ class HTTPDigestAuth(AuthBase):
# XXX not implemented yet
entdig = None
p_parsed = urlparse(r.request.url)
path = p_parsed.path + p_parsed.query
path = p_parsed.path
if p_parsed.query:
path += '?' + p_parsed.query
A1 = '%s:%s:%s' % (self.username, realm, self.password)
A2 = '%s:%s' % (r.request.method, path)