diff options
author | Anton Tananaev <anton@traccar.org> | 2023-05-18 16:42:22 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-05-18 16:42:22 -0700 |
commit | ebc3ab93b63006c77802c45c793f3a875982dbba (patch) | |
tree | c0c435f6be0a89f5f892ea058fe68eda39ae330f /src/main/java/org/traccar/web/WebServer.java | |
parent | 39b293b9f66c3c539e180fb2bcf37849335100dc (diff) | |
download | trackermap-server-ebc3ab93b63006c77802c45c793f3a875982dbba.tar.gz trackermap-server-ebc3ab93b63006c77802c45c793f3a875982dbba.tar.bz2 trackermap-server-ebc3ab93b63006c77802c45c793f3a875982dbba.zip |
Support web overrides
Diffstat (limited to 'src/main/java/org/traccar/web/WebServer.java')
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index ce1220157..b5d2f2771 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2022 Anton Tananaev (anton@traccar.org) + * Copyright 2012 - 2023 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -141,7 +141,7 @@ public class WebServer implements LifecycleObject { } private void initWebApp(ServletContextHandler servletHandler) { - ServletHolder servletHolder = new ServletHolder(ModernDefaultServlet.class); + ServletHolder servletHolder = new ServletHolder(new ModernDefaultServlet(config)); servletHolder.setInitParameter("resourceBase", new File(config.getString(Keys.WEB_PATH)).getAbsolutePath()); servletHolder.setInitParameter("dirAllowed", "false"); if (config.getBoolean(Keys.WEB_DEBUG)) { |