From 0608560d0a2b5e66dc9d0bb222b3145e2dbe70c8 Mon Sep 17 00:00:00 2001 From: Toropanov Nikolai Date: Tue, 12 Oct 2021 09:14:07 +0300 Subject: [PATCH] closes #22 --- src/main/java/io/adven/grpc/wiremock/HttpMock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/adven/grpc/wiremock/HttpMock.java b/src/main/java/io/adven/grpc/wiremock/HttpMock.java index 7fdbde9..e582f79 100644 --- a/src/main/java/io/adven/grpc/wiremock/HttpMock.java +++ b/src/main/java/io/adven/grpc/wiremock/HttpMock.java @@ -78,6 +78,7 @@ public void destroy() { public Response request(String path, Object message, Map headers) throws IOException, InterruptedException { headers.putAll(HEADERS.get()); + headers.remove("accept-encoding"); LOG.info("Grpc request {}:\nHeaders: {}\nMessage:\n{}", path, headers, message); return new Response( httpClient.send(