Rev 2427: Tested against squid-2.6.5 with basic authentication. in http://bazaar.launchpad.net/~bzr/bzr/bzr.http.auth

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Apr 20 12:24:55 BST 2007


At http://bazaar.launchpad.net/~bzr/bzr/bzr.http.auth

------------------------------------------------------------
revno: 2427
revision-id: v.ladeuil+lp at free.fr-20070420112453-smx7l1dfilvozcqp
parent: v.ladeuil+lp at free.fr-20070420065059-oig56fr6u5yxeiob
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: bzr.http.auth
timestamp: Fri 2007-04-20 13:24:53 +0200
message:
  Tested against squid-2.6.5 with basic authentication.
  
  * bzrlib/transport/http/_urllib2_wrappers.py:
  (ProxyBasicAuthHandler): Add realm in the prompt.
modified:
  bzrlib/transport/http/_urllib2_wrappers.py _urllib2_wrappers.py-20060913231729-ha9ugi48ktx481ao-1
-------------- next part --------------
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- a/bzrlib/transport/http/_urllib2_wrappers.py	2007-04-20 06:50:59 +0000
+++ b/bzrlib/transport/http/_urllib2_wrappers.py	2007-04-20 11:24:53 +0000
@@ -940,8 +940,11 @@
     associated with the 407 error.
     """
 
-    password_prompt = 'Proxy %(user)s@%(host)s password'
+    password_prompt = 'Proxy %(user)s@%(host)s%(realm)s password'
     auth_reqed_header = 'proxy-authenticate'
+    # FIXME: the correct capitalization is Proxy-Authorization,
+    # but python-2.4 urllib2.Request insist on using catilazze()
+    # instead of title().
     auth_header = 'Proxy-authorization'
 
     def get_auth(self, request):



More information about the bazaar-commits mailing list