]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #1378679: backport bugfix of #974757.
authorGeorg Brandl <georg@python.org>
Fri, 20 Jan 2006 22:00:43 +0000 (22:00 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 20 Jan 2006 22:00:43 +0000 (22:00 +0000)
Lib/urllib2.py

index fe9c7b2de8e4e513482bf0b78baeb346d9fd865a..85cc4e1d916410cab13f6439fea5cc384f58f539 100644 (file)
@@ -720,7 +720,7 @@ class AbstractBasicAuthHandler:
                     return self.retry_http_basic_auth(host, req, realm)
 
     def retry_http_basic_auth(self, host, req, realm):
-        user,pw = self.passwd.find_user_password(realm, host)
+        user, pw = self.passwd.find_user_password(realm, req.get_full_url())
         if pw is not None:
             raw = "%s:%s" % (user, pw)
             auth = 'Basic %s' % base64.encodestring(raw).strip()