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 aloubyansky committed Nov 2, 2023
1 parent a490eef commit 3ff8d45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,9 @@ private 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 3ff8d45

Please sign in to comment.