The publish_file() method was ignoring the galaxy
server url scheme and always using 'http' connections
(even for https:// urls like https://galaxy-dev.ansible.com)
And for https only server (like galaxy-dev) that redirect
http requests to https urls, this would fail because of
an unhandled '302 Found' redirect response.
publish_file() uses a http client based
on 'http.client', while the rest of mazer uses the
flat_rest_api.urls.open_url() method. So the incorrect
use of http only affects publish_file()
This is a tmp fix until this and ansible_galaxy.rest_api
is ported to requests.
The publish_file() method was ignoring the galaxy server url scheme and always using 'http' connections (even for https:// urls like https://galaxy-dev.ansible.com) And for https only server (like galaxy-dev) that redirect http requests to https urls, this would fail because of an unhandled '302 Found' redirect response.
publish_file() uses a http client based on 'http.client', while the rest of mazer uses the flat_rest_api.urls.open_url() method. So the incorrect use of http only affects publish_file()
This is a tmp fix until this and ansible_galaxy.rest_api is ported to
requests
.