mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
Patch #1480067: don't redirect HTTP digest auth in urllib2
This commit is contained in:
parent
a3a13298b2
commit
852bb00818
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue