Gzip check is disabled by default
@@ -365,11 +365,9 @@ public class JettyHttpServer extends AbstractServerProvider {
return statisticsHandler;
}
- @SuppressWarnings("deprecation")
private GzipHandler newGzipHandler(ServerConfig serverConfig) {
GzipHandler gzipHandler = new GzipHandlerWithVaryHeaderFixed();
gzipHandler.setCompressionLevel(serverConfig.responseCompressionLevel());
- gzipHandler.setCheckGzExists(false); // TODO: will be removed without replacement in Jetty 10
gzipHandler.setInflateBufferSize(8 * 1024);
gzipHandler.setIncludedMethods("GET", "POST", "PUT", "PATCH");
return gzipHandler;
