Commit 6065675d by Thomas Committed by Sébastien Eustace

Fix for unsecure host get parsed.hostname instead of parsed.netloc (#397)

parent 0b33b87b
......@@ -30,10 +30,10 @@ class PipInstaller(BaseInstaller):
if parsed.scheme == "http":
self._io.write_error(
" <warning>Installing from unsecure host: {}</warning>".format(
parsed.netloc
parsed.hostname
)
)
args += ["--trusted-host", parsed.netloc]
args += ["--trusted-host", parsed.hostname]
auth = get_http_basic_auth(package.source_reference)
if 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