Patch #1480067: don't redirect HTTP digest auth in urllib2

This commit is contained in:
Georg Brandl 2006-05-03 05:05:02 +00:00
parent a3a13298b2
commit 852bb00818
1 changed files with 1 additions and 1 deletions

View File

@ -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