Patch #1480067: don't redirect HTTP digest auth in urllib2
This commit is contained in:
parent
a3a13298b2
commit
852bb00818
|
@ -858,7 +858,7 @@ class AbstractDigestAuthHandler:
|
|||
auth_val = 'Digest %s' % auth
|
||||
if req.headers.get(self.auth_header, None) == auth_val:
|
||||
return None
|
||||
req.add_header(self.auth_header, auth_val)
|
||||
req.add_unredirected_header(self.auth_header, auth_val)
|
||||
resp = self.parent.open(req)
|
||||
return resp
|
||||
|
||||
|
|
Loading…
Reference in New Issue