aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorjcardus <joaquim.cardeira@gmail.com>2020-03-25 21:33:35 +0000
committerjcardus <joaquim.cardeira@gmail.com>2020-03-25 21:33:35 +0000
commitfaa35f608eff1225d35794d0a38398897940d802 (patch)
tree12c44c76e1730742ff5a3870cb5648b451c830fa /src/main/java/org
parentbf77eadf252b999d36e6546cf5ccd7852ffaefe0 (diff)
downloadtraccar-server-faa35f608eff1225d35794d0a38398897940d802.tar.gz
traccar-server-faa35f608eff1225d35794d0a38398897940d802.tar.bz2
traccar-server-faa35f608eff1225d35794d0a38398897940d802.zip
compression on jetty
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) {