aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/web/WebServer.java7
1 files changed, 4 insertions, 3 deletions
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) {