aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/traccar/web/WebServer.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java
index 92548d218..d5c4cf71b 100644
--- a/src/main/java/org/traccar/web/WebServer.java
+++ b/src/main/java/org/traccar/web/WebServer.java
@@ -95,12 +95,10 @@ public class WebServer {
}
});
- GzipHandler gzipHandler = new GzipHandler();
-
HandlerList handlers = new HandlerList();
initClientProxy(config, handlers);
handlers.addHandler(servletHandler);
- handlers.addHandler(gzipHandler);
+ handlers.addHandler(new GzipHandler());
server.setHandler(handlers);
}