Skip to content
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

Set the accept header #32

Closed
BlueMonday opened this issue Nov 27, 2024 · 0 comments · Fixed by #34
Closed

Set the accept header #32

BlueMonday opened this issue Nov 27, 2024 · 0 comments · Fixed by #34

Comments

@BlueMonday
Copy link
Owner

Scryfall now requires the accept header. I don't believe this library currently sets it. Lets set it to avoid getting blocked.

The Accept header must be present, but you can provide a generic preference. For example, both of these are okay: Accept: / and Accept: application/json;q=0.9,/;q=0.8.

https://scryfall.com/blog/user-agent-and-accept-header-now-required-on-the-api-225

BlueMonday added a commit that referenced this issue Dec 15, 2024
Scryfall has requested that clients set the Accept header. Lets do that
to avoid getting blocked.

Fixes #32
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 a pull request may close this issue.

1 participant