From a998d795dafe086bc7900f7948d660e0be799aed Mon Sep 17 00:00:00 2001 From: weiZhen Date: Mon, 30 May 2022 16:56:13 +0800 Subject: [PATCH] update --- .../src/main/java/core/http/handler/StaticFileHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {