Skip to content

Commit c6db30a

Browse files
authored
[client] Remove duplicate accept header (ExpediaGroup#869)
* Remove duplicate accept header This header is already added with `install(JsonFeature) { }` See ExpediaGroup#865 * Update GraphQLKtorClient.kt
1 parent b4f09cf commit c6db30a

File tree

1 file changed

+0
-2
lines changed
  • clients/graphql-kotlin-ktor-client/src/main/kotlin/com/expediagroup/graphql/client

1 file changed

+0
-2
lines changed

clients/graphql-kotlin-ktor-client/src/main/kotlin/com/expediagroup/graphql/client/GraphQLKtorClient.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import io.ktor.client.engine.cio.CIOEngineConfig
3030
import io.ktor.client.features.json.JacksonSerializer
3131
import io.ktor.client.features.json.JsonFeature
3232
import io.ktor.client.request.HttpRequestBuilder
33-
import io.ktor.client.request.accept
3433
import io.ktor.client.request.post
3534
import io.ktor.http.ContentType
3635
import io.ktor.http.contentType
@@ -82,7 +81,6 @@ open class GraphQLKtorClient<in T : HttpClientEngineConfig>(
8281

8382
val rawResult = client.post<String>(url) {
8483
apply(requestBuilder)
85-
accept(ContentType.Application.Json)
8684
contentType(ContentType.Application.Json)
8785
body = graphQLRequest
8886
}

0 commit comments

Comments
 (0)