Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Pass
Accept
header to requests in contrib.utils.download
(
#1673) * Pass requests the `Accept` HTTP header that matches the content type of the resource file. The HEPData landing page for the resource requested can check if the header matches and then return the content directly. - c.f. https://blog.datacite.org/changes-to-doi-content-negotiation/ Co-authored-by: Graeme Watt <Graeme.Watt@durham.ac.uk>
- Loading branch information