From: Georg Brandl Date: Fri, 20 Jan 2006 22:00:43 +0000 (+0000) Subject: Bug #1378679: backport bugfix of #974757. X-Git-Tag: v2.4.3c1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13a334e069e6ffe62c6f1dba6660a873a73d6701;p=thirdparty%2FPython%2Fcpython.git Bug #1378679: backport bugfix of #974757. --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index fe9c7b2de8e4..85cc4e1d9164 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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()