!1108 修复 RootAction send404 抛异常

Merge pull request !1108 from lzpeng723/v6-dev
This commit is contained in:
Looly 2023-11-20 01:44:50 +00:00 committed by Gitee
commit 1939486229
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
}
}