diff --git a/pom.xml b/pom.xml index 478f3f7..a56ce61 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 de.srsoftware web4rail - 0.11.16 + 0.11.17 Web4Rail jar Java Model Railway Control diff --git a/src/main/java/de/srsoftware/web4rail/Application.java b/src/main/java/de/srsoftware/web4rail/Application.java index 6754931..36c08ab 100644 --- a/src/main/java/de/srsoftware/web4rail/Application.java +++ b/src/main/java/de/srsoftware/web4rail/Application.java @@ -206,6 +206,7 @@ public class Application extends BaseClass{ File file = new File(System.getProperty("user.dir")+"/resources"+uri); LOG.debug("requesting file: {}",file); if (file.exists()) { + LOG.debug("found..."); client.getResponseHeaders().add("Content-Type", Files.probeContentType(file.toPath())); client.sendResponseHeaders(200, file.length()); OutputStream out = client.getResponseBody(); @@ -217,6 +218,7 @@ public class Application extends BaseClass{ out.close(); return; } + LOG.debug("not found..."); sendError(client,404,t("Could not find \"{}\"",uri)); }