aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-02-03 10:17:02 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-02-03 10:17:02 -0500
commitbe840c2fe49766e3311475441b123a4eb3ba473a (patch)
tree76278e5884c9cdf9bed352a591ca051a156667ca /setuptools/package_index.py
parentc65337e4b58523ff0db5d57d004cada74178bf74 (diff)
downloadexternal_python_setuptools-be840c2fe49766e3311475441b123a4eb3ba473a.tar.gz
external_python_setuptools-be840c2fe49766e3311475441b123a4eb3ba473a.tar.bz2
external_python_setuptools-be840c2fe49766e3311475441b123a4eb3ba473a.zip
Also restore port consideration when re-injecting credentials for found links.
Diffstat (limited to 'setuptools/package_index.py')
-rw-r--r--setuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 05c9e341..705a47cf 100644
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -1083,7 +1083,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):
# Put authentication info back into request URL if same host,
# so that links found on the page will work
s2, h2, path2, param2, query2, frag2 = urllib.parse.urlparse(fp.url)
- if s2 == scheme and h2 == parsed.hostname:
+ if s2 == scheme and h2 == address:
parts = s2, netloc, path2, param2, query2, frag2
fp.url = urllib.parse.urlunparse(parts)