Merge pull request #10893 from sidick/fix_fetch_url_with_custom_https_port

Allow the use of HTTP on custom ports in the fetch_url function
pull/10898/head
Brian Coca 11 years ago
commit 0951a74ea0

@ -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

Loading…
Cancel
Save