Skip to content

Provide User-Agent and Accept headers in URLFile requests #2011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

aron
Copy link
Contributor

@aron aron commented Oct 21, 2024

It turns out some providers require these headers to be present
otherwise they'll give an error response. This issue is not present
in the requests version of the codebase because the requests library
provides default headers on our behalf.

@aron aron requested a review from nickstenning October 21, 2024 10:36
@aron aron force-pushed the async-url-file-headers branch from 56c98ab to c30771f Compare October 21, 2024 10:37
It turns out some providers require these headers to be present
otherwise they'll give an error response. This issue is not present
in the requests version of the codebase because the requests library
provides default headers on our behalf.
@aron aron force-pushed the async-url-file-headers branch from c30771f to 618e56d Compare October 21, 2024 11:11
@aron
Copy link
Contributor Author

aron commented Oct 21, 2024

Gonna merge this as it's a minor change. I'm happy to do cleanup as a follow-up after audit.

@aron aron merged commit 426b112 into async Oct 21, 2024
9 checks passed
@aron aron deleted the async-url-file-headers branch October 21, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant