Skip to content

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

Open
@ffdevelit

Description

@ffdevelit

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions