Have the ProgressableDownloader send an Accept header

Description

I was experimenting with downloading zip files from GitLab based on repo tags, and it turns out GitLab won't return a zip file unless an "Accept" header is sent with the request. Adding "Accept: */*" seems to be sufficient to actually get the file, and obviously doesn't limit the mime type.

Activity

Show:
Brad Wood
April 6, 2020, 11:51 PM

Great catch, do you want to send a pull for this? Should we make it configurable or just set anything for the accept header?

John Berquist
April 7, 2020, 10:42 PM

I am happy to send a pull for this. I would be inclined to set the header to accept anything.

Brad Wood
April 8, 2020, 5:56 PM

Fixed

Assignee

John Berquist

Reporter

John Berquist

Labels

None

Affects versions

None

Fix versions

Priority

Major