Rev 4797: Revert auth reuse. in file:///home/vila/src/bzr/reviews/395714-auth-redirect/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Nov 25 14:58:27 GMT 2009


At file:///home/vila/src/bzr/reviews/395714-auth-redirect/

------------------------------------------------------------
revno: 4797
revision-id: v.ladeuil+lp at free.fr-20091125145826-ovaxu5eivklm14gw
parent: nmb at wartburg.edu-20091112170656-uq2ltpmaxldecdqf
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 395714-auth-redirect
timestamp: Wed 2009-11-25 15:58:26 +0100
message:
  Revert auth reuse.
-------------- next part --------------
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- a/bzrlib/transport/http/_urllib2_wrappers.py	2009-11-12 17:06:56 +0000
+++ b/bzrlib/transport/http/_urllib2_wrappers.py	2009-11-25 14:58:26 +0000
@@ -342,7 +342,7 @@
     def __init__(self, method, url, data=None, headers={},
                  origin_req_host=None, unverifiable=False,
                  connection=None, parent=None,
-                 accepted_errors=None, existing_auth={}):
+                 accepted_errors=None):
         urllib2.Request.__init__(self, url, data, headers,
                                  origin_req_host, unverifiable)
         self.method = method
@@ -357,7 +357,7 @@
         # (scheme, host, port, realm, user, password, protocol, path).
         # The dict entries are mostly handled by the AuthHandler.
         # Some authentication schemes may add more entries.
-        self.auth = existing_auth
+        self.auth = {}
         self.proxy_auth = {}
         self.proxied_host = None
 
@@ -777,7 +777,6 @@
                            # share the same connection...
                            connection = None,
                            parent = req,
-                           existing_auth = req.auth,
                            )
         else:
             raise urllib2.HTTPError(req.get_full_url(), code, msg, headers, fp)



More information about the bazaar-commits mailing list