Skip to content

Commit

Permalink
Default response content type using GraphQL spec
Browse files Browse the repository at this point in the history
Default response content type header should conform to [GraphQL over HTTP spec](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#serialization-format).

(cherry picked from commit bff1fb7)
  • Loading branch information
ivanp authored and gsmet committed Oct 11, 2023
1 parent 24f25ab commit 9418063
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class SmallRyeGraphQLExecutionHandler extends SmallRyeGraphQLAbstractHand
private static final String EXTENSIONS = "extensions";
private static final String APPLICATION_GRAPHQL = "application/graphql";
private static final String OK = "OK";
private static final String DEFAULT_RESPONSE_CONTENT_TYPE = "application/graphql+json; charset="
private static final String DEFAULT_RESPONSE_CONTENT_TYPE = "application/graphql-response+json; charset="
+ StandardCharsets.UTF_8.name();
private static final String DEFAULT_REQUEST_CONTENT_TYPE = "application/json; charset="
+ StandardCharsets.UTF_8.name();
Expand Down

0 comments on commit 9418063

Please sign in to comment.