-
Notifications
You must be signed in to change notification settings - Fork 306
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
Support client requests with content-type "application/graphql" #948
Comments
Change WebFlux handler to actually decode from JSON rather than take an already decoded SerializableGraphQlRequest. See gh-948
Fixed via 7dd9cf5 |
That makes the handlers capable, but the router mappings also need an update. For 1.3 there is a new |
Prior to this commit, gh-948 added a fallback support for the "application/graphql" content-type sent by clients. This media type is not widely used and advised against by the spec group. This fallback checked for an exact match of the content type, not taking into account potential media type parameters such as charset. This commit ensure that a `MediaType#include` comparison is used to trigger the fallback. Fixes gh-1036
Prior to this commit, gh-948 added a fallback support for the "application/graphql" content-type sent by clients. This media type is not widely used and advised against by the spec group. This fallback checked for an exact match of the content type, not taking into account potential media type parameters such as charset. This commit ensure that a `MediaType#include` comparison is used to trigger the fallback. Fixes gh-1038
It's not a media type from GraphQL over HTTP spec, but it's used widely enough by clients and some tooling, e.g. IntelliJ uses it in the HTTP client. However, message converters and codecs are only configured for "application/json". We need to be more lenient, and allow such requests to be handled.
The text was updated successfully, but these errors were encountered: