From ab8b2496218f49f49d2602987481e2dd7a3e7293 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed@undiclosed>
Date: Sat, 10 Apr 2021 17:59:27 +0000
Subject: [PATCH] UI-Anpassungen

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

diff --git a/src/de/uhilger/mediaz/api/FileHandler.java b/src/de/uhilger/mediaz/api/FileHandler.java
index d83a705..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;
@@ -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