Skip to content

Commit 5115baf

Browse files
author
Antoine DAVID
committed
fix(kotlin-client): 🐛 replace accept-encoding application/json to null
- 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
1 parent c6aaa57 commit 5115baf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 2.1.0 [unreleased]
22

3+
### Bug Fixes
4+
1. [#205](https://github.com/influxdata/influxdb-client-java/pull/205): Fix GZIP issue for query executed from Kotlin client [see issue comments](https://github.com/influxdata/influxdb-client-java/issues/50#issuecomment-796896401)
5+
36
## 2.0.0 [2021-03-05]
47

58
### API

client-kotlin/src/main/kotlin/com/influxdb/client/kotlin/internal/QueryKotlinApiImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ internal class QueryKotlinApiImpl(private val service: QueryService, private val
167167

168168
val channel = Channel<String>()
169169

170-
val queryCall = service.postQueryResponseBody(null, "application/json",
170+
val queryCall = service.postQueryResponseBody(null, null,
171171
null, org, null, query)
172172

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

195195
val channel = Channel<T>()
196196

197-
val queryCall = service.postQueryResponseBody(null, "application/json",
197+
val queryCall = service.postQueryResponseBody(null, null,
198198
null, org, null, query)
199199

200200
val responseConsumer = object : FluxResponseConsumer {

0 commit comments

Comments
 (0)