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

Disable Accept and Content-Type header rewriting if they are already defined #40

Closed
misaon opened this issue Dec 20, 2021 · 0 comments
Closed
Assignees

Comments

@misaon
Copy link

misaon commented Dec 20, 2021

Hi, i need send JSON body via PATCH method with 'Content-Type': 'application/merge-patch+json' head but OhMyFetch always rewrite it to application/json.
I would suggest that if the user defines a "Accept" or "Content-type" header, OhMyFetch will not overwrite them.

@misaon misaon changed the title Make Content-Type rewriting optional Make Accept and Content-Type header rewriting optional Dec 20, 2021
@misaon misaon changed the title Make Accept and Content-Type header rewriting optional Disable Accept and Content-Type header rewriting if they are already defined Dec 20, 2021
@danielroe danielroe self-assigned this Dec 21, 2021
@pi0 pi0 closed this as completed in 4b74e45 Dec 21, 2021
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.

2 participants