Commit 852bb008 authored by Georg Brandl's avatar Georg Brandl

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

parent a3a13298
...@@ -858,7 +858,7 @@ class AbstractDigestAuthHandler: ...@@ -858,7 +858,7 @@ class AbstractDigestAuthHandler:
auth_val = 'Digest %s' % auth auth_val = 'Digest %s' % auth
if req.headers.get(self.auth_header, None) == auth_val: if req.headers.get(self.auth_header, None) == auth_val:
return None return None
req.add_header(self.auth_header, auth_val) req.add_unredirected_header(self.auth_header, auth_val)
resp = self.parent.open(req) resp = self.parent.open(req)
return resp return resp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment