Skip to content

Commit

Permalink
Allow the use of HTTP on custom ports in the fetch_url function
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dick committed May 1, 2015
1 parent 1c250ee commit 6e65cca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/module_utils/urls.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6e65cca

Please sign in to comment.