diff --git a/src/main/java/org/zalando/nakadi/config/JettyConfig.java b/src/main/java/org/zalando/nakadi/config/JettyConfig.java index 28f56fb007..d0c2e2e880 100644 --- a/src/main/java/org/zalando/nakadi/config/JettyConfig.java +++ b/src/main/java/org/zalando/nakadi/config/JettyConfig.java @@ -1,5 +1,6 @@ package org.zalando.nakadi.config; +import org.eclipse.jetty.http.HttpMethod; import org.eclipse.jetty.server.handler.gzip.GzipHandler; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.springframework.beans.factory.annotation.Value; @@ -25,6 +26,7 @@ public JettyEmbeddedServletContainerFactory jettyEmbeddedServletContainerFactory threadPool.setIdleTimeout(Integer.valueOf(idleTimeout)); final GzipHandler gzipHandler = new GzipHandler(); + gzipHandler.addIncludedMethods(HttpMethod.POST.asString()); gzipHandler.setHandler(server.getHandler()); gzipHandler.setSyncFlush(true); server.setHandler(gzipHandler);