aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-03 08:08:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-02-03 08:08:07 +1300
commit654116f06161a6f73d23a6bb610f5420cebfdfc9 (patch)
tree73cf11a503a5c8378a4db12069dae7be668674a2 /src/org/traccar/web
parentc8f3ddf412dc98b9430f697a0e02d24a3f15627d (diff)
downloadtrackermap-server-654116f06161a6f73d23a6bb610f5420cebfdfc9.tar.gz
trackermap-server-654116f06161a6f73d23a6bb610f5420cebfdfc9.tar.bz2
trackermap-server-654116f06161a6f73d23a6bb610f5420cebfdfc9.zip
Revert back parameter name
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/WebServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 06894552d..13eebf34f 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -170,7 +170,7 @@ public class WebServer {
if (config.hasKey("media.path")) {
ServletHolder servletHolder = new ServletHolder("media", DefaultServlet.class);
servletHolder.setInitParameter("resourceBase", config.getString("media.path"));
- servletHolder.setInitParameter("dirAllowed", config.getString("media.directoryAllow", "false"));
+ servletHolder.setInitParameter("dirAllowed", config.getString("media.dirAllowed", "false"));
servletHolder.setInitParameter("pathInfoOnly", "true");
servletHandler.addServlet(servletHolder, "/media/*");
servletHandler.addFilter(MediaFilter.class, "/media/*", EnumSet.allOf(DispatcherType.class));