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

Allow overriding the default accept headers #200

Merged
merged 1 commit into from
Nov 9, 2019

Conversation

sholladay
Copy link
Collaborator

Fixes #199

This PR makes it possible to override the HTTP accept header that Ky sets by default when a body method shortcut is used, such as .json().

@sindresorhus sindresorhus merged commit 65f38f9 into sindresorhus:master Nov 9, 2019
@sholladay sholladay deleted the override-accept branch November 9, 2019 13:50
@jacob-fueled
Copy link

So quick! Thank you 🙌

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.

Can't override Request 'Accept' header
4 participants