From 13a334e069e6ffe62c6f1dba6660a873a73d6701 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 20 Jan 2006 22:00:43 +0000 Subject: Bug #1378679: backport bugfix of #974757. --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib2.py b/Lib/urllib2.py index fe9c7b2..85cc4e1 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() -- cgit v0.12