Fix forwarding the user-given params from fetch_url() to open_url()

pull/11370/head
Toshio Kuratomi 10 years ago
parent 7b4ff28b87
commit a1a7d6c462

@ -504,8 +504,8 @@ def fetch_url(module, url, data=None, headers=None, method=None,
r = None r = None
info = dict(url=url) info = dict(url=url)
try: try:
r = open_url(url, data=None, headers=None, method=None, r = open_url(url, data=data, headers=headers, method=method,
use_proxy=True, force=False, last_mod_time=None, timeout=10, use_proxy=use_proxy, force=force, last_mod_time=last_mod_time, timeout=timeout,
validate_certs=validate_certs, url_username=username, validate_certs=validate_certs, url_username=username,
url_password=password, http_agent=http_agent) url_password=password, http_agent=http_agent)
info.update(r.info()) info.update(r.info())

Loading…
Cancel
Save