Commit f379036f authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #1665 from pypa/bugfix/1663-restore-port

Ensure port is included in package-index
parents 8f82e507 d3afa2f5
Restore port in URL handling in package_index.
......@@ -1072,7 +1072,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):
if auth:
auth = "Basic " + _encode_auth(auth)
parts = scheme, parsed.hostname, path, params, query, frag
parts = scheme, netloc, path, params, query, frag
new_url = urllib.parse.urlunparse(parts)
request = urllib.request.Request(new_url)
request.add_header("Authorization", auth)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment