From faa35f608eff1225d35794d0a38398897940d802 Mon Sep 17 00:00:00 2001 From: jcardus Date: Wed, 25 Mar 2020 21:33:35 +0000 Subject: compression on jetty --- src/main/java/org/traccar/web/WebServer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index daa46b926..92548d218 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -95,12 +95,13 @@ public class WebServer { } }); + GzipHandler gzipHandler = new GzipHandler(); + HandlerList handlers = new HandlerList(); initClientProxy(config, handlers); handlers.addHandler(servletHandler); - GzipHandler gzipHandler = new GzipHandler(); - gzipHandler.setHandler(handlers); - server.setHandler(gzipHandler); + handlers.addHandler(gzipHandler); + server.setHandler(handlers); } private void initClientProxy(Config config, HandlerList handlers) { -- cgit v1.2.3