Skip to content

Commit

Permalink
Accept requests that ask for application/graphql-response+json
Browse files Browse the repository at this point in the history
(cherry picked from commit 5550b70)
  • Loading branch information
jmartisk authored and gsmet committed Oct 11, 2023
1 parent 9418063 commit 363f45c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ private static String getCharset(String mimeType) {
}

private boolean isValidAcceptRequest(String mimeType) {
// At this point we only accept two
return mimeType.startsWith("application/json")
|| mimeType.startsWith("application/graphql-response+json")
// application/graphql+json is incorrect, but we keep it for backwards compatibility
|| mimeType.startsWith("application/graphql+json");
}

Expand Down

0 comments on commit 363f45c

Please sign in to comment.