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

Commit 9cf07ee

Browse files
committed
Implement Issue influxdata#389 : Support for MessagePack
accept-encoding must be controlled by custom Request Interceptor rather than hard-coding
1 parent 405781c commit 9cf07ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/influxdb/impl/InfluxDBImpl.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ public InfluxDBImpl(final String url, final String username, final String passwo
130130
switch (responseFormat) {
131131
case MSGPACK:
132132
clonedBuilder.addInterceptor(chain -> {
133-
Request request = chain.request().newBuilder().addHeader("Accept", APPLICATION_MSGPACK)
134-
.addHeader("Accept-Encoding", "identity").build();
133+
Request request = chain.request().newBuilder().addHeader("Accept", APPLICATION_MSGPACK).build();
135134
return chain.proceed(request);
136135
});
137136

0 commit comments

Comments
 (0)