[Python-checkins] r45879 - python/trunk/Lib/urllib2.py
georg.brandl
python-checkins at python.org
Wed May 3 07:05:03 CEST 2006
Author: georg.brandl
Date: Wed May 3 07:05:02 2006
New Revision: 45879
Modified:
python/trunk/Lib/urllib2.py
Log:
Patch #1480067: don't redirect HTTP digest auth in urllib2
Modified: python/trunk/Lib/urllib2.py
==============================================================================
--- python/trunk/Lib/urllib2.py (original)
+++ python/trunk/Lib/urllib2.py Wed May 3 07:05:02 2006
@@ -858,7 +858,7 @@
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
More information about the Python-checkins
mailing list