Skip to content

Commit 1c8c3e7

Browse files
authored
Remove duplicate header
Copy changes over from #865 to `3.x.x` branch
1 parent ad082b1 commit 1c8c3e7

File tree

1 file changed

+0
-2
lines changed
  • plugins/graphql-kotlin-plugin-core/src/main/kotlin/com/expediagroup/graphql/plugin

1 file changed

+0
-2
lines changed

plugins/graphql-kotlin-plugin-core/src/main/kotlin/com/expediagroup/graphql/plugin/introspectSchema.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import io.ktor.client.engine.cio.CIO
2525
import io.ktor.client.engine.cio.endpoint
2626
import io.ktor.client.features.ClientRequestException
2727
import io.ktor.client.features.json.JsonFeature
28-
import io.ktor.client.request.accept
2928
import io.ktor.client.request.header
3029
import io.ktor.client.request.post
3130
import io.ktor.client.request.url
@@ -51,7 +50,6 @@ suspend fun introspectSchema(endpoint: String, httpHeaders: Map<String, Any> = e
5150
client.post<Map<String, Any?>> {
5251
url(endpoint)
5352
contentType(ContentType.Application.Json)
54-
accept(ContentType.Application.Json)
5553
httpHeaders.forEach { (name, value) ->
5654
header(name, value)
5755
}

0 commit comments

Comments
 (0)