You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep response content type to application/json as default instead of application/graphql-response+json (#1832)
### 📝 Description
Most clients will request with `*/*` unless an any MediaType is
specified.
However, the `*/*` was not taken into account in current implementation.
I change to keep `application/json` as default instead of
`application/graphql-response+json`.
### 🔗 Related Issues
#1831#1573#1699
Copy file name to clipboardExpand all lines: servers/graphql-kotlin-spring-server/src/main/kotlin/com/expediagroup/graphql/server/spring/GraphQLRoutesConfiguration.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ class GraphQLRoutesConfiguration(
Copy file name to clipboardExpand all lines: servers/graphql-kotlin-spring-server/src/test/kotlin/com/expediagroup/graphql/server/spring/routes/RouteConfigurationIT.kt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,18 @@ class RouteConfigurationIT(@Autowired private val testClient: WebTestClient) {
205
205
.verifyGraphQLRoute("Hello POST application/graphql!")
206
206
}
207
207
208
+
@Test
209
+
fun`verify POST graphQL request without response content type`() {
0 commit comments