diff --git a/sky-infrastructure/src/main/java/core/http/handler/StaticFileHandler.java b/sky-infrastructure/src/main/java/core/http/handler/StaticFileHandler.java index 3ba4a82..250b8c0 100644 --- a/sky-infrastructure/src/main/java/core/http/handler/StaticFileHandler.java +++ b/sky-infrastructure/src/main/java/core/http/handler/StaticFileHandler.java @@ -91,7 +91,7 @@ public void handle(final HttpServerRequest request, final HttpServerResponse res } if (file.isDirectory()) { - if (uri.endsWith("/")) { + if (uri.endsWith(StringPool.SLASH)) { final String html = getFileListing(file, uri); response.html(html); } else {