Bug fix: field uri in digest authentication should not be empty when encounter http redirections

This commit is contained in:
Zhaoyu Luo
2015-01-25 18:11:22 -06:00
parent 2f7f6a57f3
commit fb1971778f
+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