Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Implement Issue influxdata#389 : Support for MessagePack
Browse files Browse the repository at this point in the history
accept-encoding must be controlled by custom Request Interceptor rather than hard-coding
  • Loading branch information
lxhoan committed Jul 31, 2018
1 parent 405781c commit 9cf07ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/influxdb/impl/InfluxDBImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ public InfluxDBImpl(final String url, final String username, final String passwo
switch (responseFormat) {
case MSGPACK:
clonedBuilder.addInterceptor(chain -> {
Request request = chain.request().newBuilder().addHeader("Accept", APPLICATION_MSGPACK)
.addHeader("Accept-Encoding", "identity").build();
Request request = chain.request().newBuilder().addHeader("Accept", APPLICATION_MSGPACK).build();
return chain.proceed(request);
});

Expand Down

0 comments on commit 9cf07ee

Please sign in to comment.