Merge pull request #2427 from luozhaoyu/master

Bug fix: field uri in digest authentication should not be empty when enc...
This commit is contained in:
Ian Cordasco
2015-04-06 10:19:15 -05:00
+2 -1
View File
@@ -103,7 +103,8 @@ class HTTPDigestAuth(AuthBase):
# XXX not implemented yet
entdig = None
p_parsed = urlparse(url)
path = p_parsed.path
#: path is request-uri defined in RFC 2616 which should not be empty
path = p_parsed.path or "/"
if p_parsed.query:
path += '?' + p_parsed.query