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

fix: GET request are called with application/json value in Content-Type #691

Open
ffdevelit opened this issue Jul 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ffdevelit
Copy link

ffdevelit commented Jul 5, 2024

🐛 The bug

DevTools are adding Content-Type header with application/json value to GET requests.

According to RFC 7231:

A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.

GET request shouldn't be sending a body thus application/json value doesn't fit.

🛠️ To reproduce

https://github.com/filipfdevelit/repl-nuxt-dev-tools-content-type-get-request

🌈 Expected behavior

DevTools are not adding application/json to Content-Type header for GET requests.

ℹ️ Additional context

No response

@ffdevelit ffdevelit added the bug Something isn't working label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant