Rev 2432: Cometic changes. in http://bazaar.launchpad.net/~bzr/bzr/bzr.http.auth
Vincent Ladeuil
v.ladeuil+lp at free.fr
Sat Apr 21 22:29:36 BST 2007
At http://bazaar.launchpad.net/~bzr/bzr/bzr.http.auth
------------------------------------------------------------
revno: 2432
revision-id: v.ladeuil+lp at free.fr-20070421212934-y3gyvd9pgs19sr7u
parent: v.ladeuil+lp at free.fr-20070421203906-hta5jt0nmauyl9qy
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: bzr.http.auth
timestamp: Sat 2007-04-21 23:29:34 +0200
message:
Cometic changes.
modified:
bzrlib/tests/HttpServer.py httpserver.py-20061012142527-m1yxdj1xazsf8d7s-1
bzrlib/transport/http/_urllib2_wrappers.py _urllib2_wrappers.py-20060913231729-ha9ugi48ktx481ao-1
-------------- next part --------------
=== modified file 'bzrlib/tests/HttpServer.py'
--- a/bzrlib/tests/HttpServer.py 2007-04-21 11:31:13 +0000
+++ b/bzrlib/tests/HttpServer.py 2007-04-21 21:29:34 +0000
@@ -45,7 +45,7 @@
"""Handles one request.
A TestingHTTPRequestHandler is instantiated for every request
- recevied by the associated server.
+ received by the associated server.
"""
def log_message(self, format, *args):
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- a/bzrlib/transport/http/_urllib2_wrappers.py 2007-04-21 20:39:06 +0000
+++ b/bzrlib/transport/http/_urllib2_wrappers.py 2007-04-21 21:29:34 +0000
@@ -30,9 +30,6 @@
And a custom Request class that lets us track redirections, and
handle authentication schemes.
-
-We also create a Request hierarchy, to make it clear what type of
-request is being made.
"""
DEBUG = 0
@@ -149,7 +146,6 @@
The Request object tracks:
- the connection the request will be made on.
-
- the authentication parameters needed to preventively set
the authentication header once a first authentication have
been made.
@@ -725,11 +721,11 @@
# No proxy auth parameter are available, we are
# handling the first proxied request, intialize.
# scheme and realm will be set by the AuthHandler
- # We default to a realm of None to catch them all.
authuri = extract_authentication_uri(proxy)
request.proxy_auth = {'user': user, 'password': password,
'authuri': authuri}
if user and password is not None: # '' is a valid password
+ # We default to a realm of None to catch them all.
self.password_manager.add_password(None, authuri,
user, password)
orig_type = request.get_type()
More information about the bazaar-commits
mailing list