diff options
author | jcardus <joaquim.cardeira@gmail.com> | 2020-03-25 21:33:35 +0000 |
---|---|---|
committer | jcardus <joaquim.cardeira@gmail.com> | 2020-03-25 21:33:35 +0000 |
commit | faa35f608eff1225d35794d0a38398897940d802 (patch) | |
tree | 12c44c76e1730742ff5a3870cb5648b451c830fa /src/main | |
parent | bf77eadf252b999d36e6546cf5ccd7852ffaefe0 (diff) | |
download | trackermap-server-faa35f608eff1225d35794d0a38398897940d802.tar.gz trackermap-server-faa35f608eff1225d35794d0a38398897940d802.tar.bz2 trackermap-server-faa35f608eff1225d35794d0a38398897940d802.zip |
compression on jetty
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 7 |
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) { |