download.fetch_url() wasn't setting User-Agent
or request_id headers on it's requests. And since
it also doesn't use/reuse the request.Session from
rest_api.RestClient(), it wasn't sending those headers
for the artifact downloads.
So add a request_id and the user_agent from new
user_agent module to requests.
SUMMARY
Add useragent and req id headers to download
download.fetch_url() wasn't setting User-Agent or request_id headers on it's requests. And since it also doesn't use/reuse the request.Session from rest_api.RestClient(), it wasn't sending those headers for the artifact downloads.
So add a request_id and the user_agent from new user_agent module to requests.
This is needed to finish https://github.com/ansible/galaxy/pull/1789 which is impl of https://github.com/ansible/galaxy/issues/1769
ISSUE TYPE
MAZER VERSION
ADDITIONAL INFORMATION