[Python-checkins] r45880 - python/branches/release24-maint/Lib/urllib2.py

georg.brandl python-checkins at python.org
Wed May 3 07:05:09 CEST 2006


Author: georg.brandl
Date: Wed May  3 07:05:08 2006
New Revision: 45880

Modified:
   python/branches/release24-maint/Lib/urllib2.py
Log:
Patch #1480067: don't redirect HTTP digest auth in urllib2
 (backport from rev. 45879)

Modified: python/branches/release24-maint/Lib/urllib2.py
==============================================================================
--- python/branches/release24-maint/Lib/urllib2.py	(original)
+++ python/branches/release24-maint/Lib/urllib2.py	Wed May  3 07:05:08 2006
@@ -815,7 +815,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