From 111ebd2f19e969dd56e24c42f7d0e9409bdf4437 Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 2 Oct 2018 19:20:57 +0700 Subject: [PATCH] FileServerHandler update --- .../fileserver/FileServerHandler.java | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/fileserver/FileServerHandler.java b/LaunchServer/src/main/java/ru/gravit/launchserver/fileserver/FileServerHandler.java index f12ab61c..94dc6e62 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/fileserver/FileServerHandler.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/fileserver/FileServerHandler.java @@ -31,6 +31,7 @@ import java.io.RandomAccessFile; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; +import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; @@ -47,15 +48,16 @@ public class FileServerHandler extends SimpleChannelInboundHandler\r\n") - .append("") - .append("Listing of: ") - .append(dirPath) - .append("\r\n") + .append("\r\n") + .append("") + .append("Listing of: ") + .append(dirPath) + .append("\r\n") - .append("

Listing of: ") - .append(dirPath) - .append("

\r\n") + .append("

Listing of: ") + .append(dirPath) + .append("

\r\n") - .append("