Merge pull request #352 from tmoertel/develop

Fix bug in HTTP-digest auth w/ URI having query string
This commit is contained in:
Kenneth Reitz
2012-01-12 12:52:02 -08:00
+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)