diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-31 20:57:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-31 20:57:00 -0500 |
commit | 3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4 (patch) | |
tree | 7ecd22ec2ac52daa9668161f79b5b35ae33c7498 | |
parent | 5133d86c3e71709f59fbb9c5b60577bcdb8a7698 (diff) | |
parent | 39130a855560e2838ce3cd899d8e7406fcdb4006 (diff) | |
download | python-setuptools-git-3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4.tar.gz |
Merge pull request #1666 from pypa/bugfix/1663-restore-port
Bugfix/1663 restore port
-rw-r--r-- | changelog.d/1666.change.rst | 1 | ||||
-rw-r--r-- | setuptools/package_index.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/1666.change.rst b/changelog.d/1666.change.rst new file mode 100644 index 00000000..55a1c0f1 --- /dev/null +++ b/changelog.d/1666.change.rst @@ -0,0 +1 @@ +Restore port in URL handling in package_index. diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 7e9517ce..ea76c005 100644 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -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) |