It would be useful for download_file to accept a headers parameter to set headers for the http request that gets made. I've run into some cases where a server will reject the request without appropriate headers set, e.g. setting Accept to an appropriate value.
It would be useful for
download_fileto accept a headers parameter to set headers for the http request that gets made. I've run into some cases where a server will reject the request without appropriate headers set, e.g. settingAcceptto an appropriate value.