Commit 6e65ccab by Simon Dick

Allow the use of HTTP on custom ports in the fetch_url function

parent 1c250ee4
......@@ -377,6 +377,7 @@ def fetch_url(module, url, data=None, headers=None, method=None,
netloc = netloc.split('@', 1)[1]
if ':' in netloc:
hostname, port = netloc.split(':', 1)
port = int(port)
else:
hostname = netloc
port = 443
......
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