Skip to content

Commit

Permalink
fix(kotlin-client): 🐛 replace accept-encoding application/json to null
Browse files Browse the repository at this point in the history
- this header is not used for influx 2.0 server because it always send back CSV data
- this header blocks the accept-encoding gzip header from the BridgeInterceptor
  • Loading branch information
Antoine DAVID committed Mar 11, 2021
1 parent c6aaa57 commit ceb775c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ internal class QueryKotlinApiImpl(private val service: QueryService, private val

val channel = Channel<String>()

val queryCall = service.postQueryResponseBody(null, "application/json",
val queryCall = service.postQueryResponseBody(null, null,
null, org, null, query)

val consumer = BiConsumer { cancellable: Cancellable, line: String ->
Expand All @@ -194,7 +194,7 @@ internal class QueryKotlinApiImpl(private val service: QueryService, private val

val channel = Channel<T>()

val queryCall = service.postQueryResponseBody(null, "application/json",
val queryCall = service.postQueryResponseBody(null, null,
null, org, null, query)

val responseConsumer = object : FluxResponseConsumer {
Expand Down

0 comments on commit ceb775c

Please sign in to comment.