|
|
@ -297,6 +297,9 @@ def uri(module, url, dest, user, password, body, method, headers, redirects, soc
|
|
|
|
r['redirected'] = redirected
|
|
|
|
r['redirected'] = redirected
|
|
|
|
r.update(resp_redir)
|
|
|
|
r.update(resp_redir)
|
|
|
|
r.update(resp)
|
|
|
|
r.update(resp)
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
return r, unicode(content).encode('utf8'), dest
|
|
|
|
|
|
|
|
except:
|
|
|
|
return r, content, dest
|
|
|
|
return r, content, dest
|
|
|
|
except httplib2.RedirectMissingLocation:
|
|
|
|
except httplib2.RedirectMissingLocation:
|
|
|
|
module.fail_json(msg="A 3xx redirect response code was provided but no Location: header was provided to point to the new location.")
|
|
|
|
module.fail_json(msg="A 3xx redirect response code was provided but no Location: header was provided to point to the new location.")
|
|
|
|