diff --git a/hutool-http/src/main/java/org/dromara/hutool/http/server/action/RootAction.java b/hutool-http/src/main/java/org/dromara/hutool/http/server/action/RootAction.java index 99f1a261e..dcc7828f2 100644 --- a/hutool-http/src/main/java/org/dromara/hutool/http/server/action/RootAction.java +++ b/hutool-http/src/main/java/org/dromara/hutool/http/server/action/RootAction.java @@ -85,11 +85,13 @@ public class RootAction implements Action { file = FileUtil.file(file, indexFileName); if (file.exists() && file.isFile()) { response.write(file); + return; } } } else{ final String name = request.getParam("name"); response.write(file, name); + return; } }