From 2af7d6512096c84b028011503246ce86deec540f Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 21 Apr 2021 12:59:07 +0000
Subject: [PATCH] Vorlagencache aktiviert

---
 src/de/uhilger/mediaz/api/FileHandler.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/mediaz/api/FileHandler.java b/src/de/uhilger/mediaz/api/FileHandler.java
index 9155c8d..5b8f846 100644
--- a/src/de/uhilger/mediaz/api/FileHandler.java
+++ b/src/de/uhilger/mediaz/api/FileHandler.java
@@ -21,7 +21,7 @@
 import com.sun.net.httpserver.HttpExchange;
 import com.sun.net.httpserver.HttpHandler;
 import de.uhilger.mediaz.App;
-import static de.uhilger.mediaz.Server.RB_SLASH;
+import de.uhilger.mediaz.Server;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
@@ -47,7 +47,7 @@
  * @author Ulrich Hilger
  * @version 0.1, 25. März 2021
  */
-public class FileHandler extends AbstractHandler implements HttpHandler {
+public class FileHandler extends JsonHelper implements HttpHandler {
 
   /* Der Logger fuer diesen FileHandler */
   private static final Logger logger = Logger.getLogger(FileHandler.class.getName());
@@ -114,7 +114,7 @@
       if (headers.containsKey(RANGE_HEADER)) {
         serveFileParts(e, new File(fileBase, fName));
       } else {
-        if (fName.length() < 1 || fName.endsWith(App.getRs(RB_SLASH))) {
+        if (fName.length() < 1 || fName.endsWith(Server.SLASH)) {
           fName += App.getRs(RB_WELCOME_FILE);
         }
         serveFile(e, new File(fileBase, fName));
@@ -316,7 +316,7 @@
     sb.append(range.getStart());
     sb.append(App.getRs(RB_DASH));
     sb.append(range.getEnd());
-    sb.append(App.getRs(RB_SLASH));
+    sb.append(Server.SLASH);
     sb.append(file.length());
     return sb.toString();
   }

--
Gitblit v1.9.3