mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix redirects for get_url
* fetch_url shouldn't both accept follow_redirects and support follow_redircts via module.params * Default follow_redirects for open_url should be 'urllib2' * Add redirect test for get_url
This commit is contained in:
@@ -145,3 +145,8 @@
|
||||
- 'get_url_result["failed"]'
|
||||
when: "{{ not python_has_ssl_context }}"
|
||||
# End hacky SNI test section
|
||||
|
||||
- name: Test get_url with redirect
|
||||
get_url:
|
||||
url: 'http://httpbin.org/redirect/6'
|
||||
dest: "{{ output_dir }}/redirect.json"
|
||||
|
||||
Reference in New Issue
Block a user