We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65dd7a4 commit ba231d0Copy full SHA for ba231d0
libraries/apollo-tooling/src/main/kotlin/com/apollographql/apollo/tooling/SchemaHelper.kt
@@ -53,8 +53,9 @@ internal object SchemaHelper {
53
headers: Map<String, String>,
54
insecure: Boolean,
55
): String {
56
+ val defaultHeaders = listOf(HttpHeader("Accept", "application/graphql-response+json, application/json"))
57
val httpRequest = HttpRequest.Builder(HttpMethod.Post, endpoint)
- .headers(headers.map { HttpHeader(it.key, it.value) })
58
+ .headers(defaultHeaders + headers.map { HttpHeader(it.key, it.value) })
59
.body(httpBody)
60
.build()
61
val httpEngine = DefaultHttpEngine(newOkHttpClient(insecure))
0 commit comments