Open juergenzimmermann opened 2 years ago
Describe the bug js-graphql-intellij-plugin submits the POST requests with the header Accept: application/json. However, according to the GraphQL spec the header should use application/graphql+json. Using application/json is considered as legacy. See https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#content-types.
Accept: application/json
application/graphql+json
application/json
Expected behavior The request header should contain application/graphql+json.
Version and Environment Details Operation system: Windows 11 21H2 IDE name and version: IntelliJ IDEA Ultimate 2022.1 Plugin version: 3.1.3
Describe the bug js-graphql-intellij-plugin submits the POST requests with the header
Accept: application/json
. However, according to the GraphQL spec the header should useapplication/graphql+json
. Usingapplication/json
is considered as legacy. See https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#content-types.Expected behavior The request header should contain
application/graphql+json
.Version and Environment Details Operation system: Windows 11 21H2 IDE name and version: IntelliJ IDEA Ultimate 2022.1 Plugin version: 3.1.3