fix: 🐛 replace accept-encoding application/json to null for all clients#205
Merged
bednar merged 1 commit intoinfluxdata:masterfrom Mar 15, 2021
Merged
Conversation
ceb775c to
5115baf
Compare
Codecov Report
@@ Coverage Diff @@
## master #205 +/- ##
=========================================
Coverage 88.44% 88.44%
Complexity 447 447
=========================================
Files 139 139
Lines 5512 5512
Branches 226 226
=========================================
Hits 4875 4875
Misses 560 560
Partials 77 77
Continue to review full report at Codecov.
|
bednar
requested changes
Mar 12, 2021
Contributor
bednar
left a comment
There was a problem hiding this comment.
Thanks again for your PR 👍
Please, could you also update following APIs:
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client/src/main/java/com/influxdb/client/internal/QueryApiImpl.java#L796
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client/src/main/java/com/influxdb/client/internal/QueryApiImpl.java#L814
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client-reactive/src/main/java/com/influxdb/client/reactive/internal/QueryReactiveApiImpl.java#L121
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client-reactive/src/main/java/com/influxdb/client/reactive/internal/QueryReactiveApiImpl.java#L259
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client-scala/src/main/scala/com/influxdb/client/scala/internal/QueryScalaApiImpl.scala#L105
- https://github.com/antoinedvd/influxdb-client-java/blob/5115baff7dd863b4119f5c40514ddba2db6e2e69/client-scala/src/main/scala/com/influxdb/client/scala/internal/QueryScalaApiImpl.scala#L280
?
Contributor
Author
Yes, I'll do that. 😉 |
- 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
5115baf to
efa46cf
Compare
Contributor
Author
|
@bednar it's done ✅ |
bednar
approved these changes
Mar 15, 2021
Contributor
bednar
left a comment
There was a problem hiding this comment.
Thanks again for your PR 👍
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
👋 Hi folks, I try make a humble contribution to fix a gzip compression issue during a query.
Accept-Encodingheader is not used for influx 2.0 server because it always send back CSV data (the server didn't care if you asked for JSON)Accept-Encoding: gzipheader from theBridgeInterceptor(quick look here 👀)Checklist
mvn testcompletes successfully