diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-25 14:41:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 14:41:06 -0700 |
commit | 01bdaf38fe425a15310a36b059a862bca661159e (patch) | |
tree | e3af67cdf387b30e97fa9ac11877604837858873 | |
parent | f3d465abe7f255ec44e976caade642e4c2fd7598 (diff) | |
parent | 02b79df2316d2b463a74edc7a1dc08231b0121f7 (diff) | |
download | trackermap-server-01bdaf38fe425a15310a36b059a862bca661159e.tar.gz trackermap-server-01bdaf38fe425a15310a36b059a862bca661159e.tar.bz2 trackermap-server-01bdaf38fe425a15310a36b059a862bca661159e.zip |
Merge pull request #4505 from jcardus/jcardus
Enable gzip compression
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index 70fef4ed3..d5c4cf71b 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -22,6 +22,7 @@ import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.handler.ErrorHandler; import org.eclipse.jetty.server.handler.HandlerList; +import org.eclipse.jetty.server.handler.gzip.GzipHandler; import org.eclipse.jetty.servlet.DefaultServlet; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; @@ -97,6 +98,7 @@ public class WebServer { HandlerList handlers = new HandlerList(); initClientProxy(config, handlers); handlers.addHandler(servletHandler); + handlers.addHandler(new GzipHandler()); server.setHandler(handlers); } |