Skip to content

Commit be840c2

Browse files
committed
Also restore port consideration when re-injecting credentials for found links.
1 parent c65337e commit be840c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/package_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):
10831083
# Put authentication info back into request URL if same host,
10841084
# so that links found on the page will work
10851085
s2, h2, path2, param2, query2, frag2 = urllib.parse.urlparse(fp.url)
1086-
if s2 == scheme and h2 == parsed.hostname:
1086+
if s2 == scheme and h2 == address:
10871087
parts = s2, netloc, path2, param2, query2, frag2
10881088
fp.url = urllib.parse.urlunparse(parts)
10891089

0 commit comments

Comments
 (0)