diff --git a/src/zutil/net/http/page/HttpFilePage.java b/src/zutil/net/http/page/HttpFilePage.java index 21b40ea..3597055 100755 --- a/src/zutil/net/http/page/HttpFilePage.java +++ b/src/zutil/net/http/page/HttpFilePage.java @@ -82,20 +82,19 @@ public class HttpFilePage implements HttpPage{ // Is the root only one file or a folder if (resource_root.isFile()) { deliverFileWithCache(headers, resource_root, out); - } - else { // Resource root is a folder + } else { // Resource root is a folder File file = new File(resource_root, headers.getRequestURL()); - if(file.getCanonicalPath().startsWith(resource_root.getCanonicalPath())){ + if (file.getCanonicalPath().startsWith(resource_root.getCanonicalPath())) { // Web Gui - if(file.isDirectory() && showFolders){ + if (file.isDirectory() && showFolders) { File indexFile = new File(file, "index.html"); // Redirect to index.html - if(redirectToIndex && indexFile.isFile()) { + if (redirectToIndex && indexFile.isFile()) { deliverFile(indexFile, out); } // Show folder contents - else if(showFolders){ + else if (showFolders) { out.println("

Directory: " + headers.getRequestURL() + "

"); out.println("