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

feat(useFetch): set content type only if it is json #573

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

isgj
Copy link
Contributor

@isgj isgj commented Jun 10, 2021

fixes #539
fixes #542

In this PR only json is handled as content type.
This is an alternative to #549

@wheatjs
Copy link
Member

wheatjs commented Jun 19, 2021

Sorry for the delay on this PR, I'll review in a few hours so we can merge 🙂

@antfu antfu changed the title Set content type only if it is json feat(useFetch): set content type only if it is json Jun 29, 2021
@antfu antfu merged commit 5fbe541 into vueuse:main Jun 29, 2021
@isgj isgj deleted the not-only-text branch June 29, 2021 16:29
antfu pushed a commit to MinatoHikari/vueuse that referenced this pull request Jul 5, 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 this pull request may close these issues.

useFetch: multipart form data header must be removed instead added useFetch and formData doesn't work
3 participants