Skip to content

Commit 48517f0

Browse files
committed
Set correct Content-Encoding header
(closes #134)
1 parent 62790a5 commit 48517f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apm-agent-core/src/main/java/co/elastic/apm/report/ApmServerHttpPayloadSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void sendPayload(final Payload payload) {
8989
builder.header("Authorization", "Bearer " + reporterConfiguration.getSecretToken());
9090
}
9191
if (useGzip(payload)) {
92-
builder.header("Content-Encoding", "gzip");
92+
builder.header("Content-Encoding", "deflate");
9393
}
9494
Request request = builder
9595
.post(new RequestBody() {

0 commit comments

Comments
 (0)