mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
!1107 修复 RootAction send404 抛异常
Merge pull request !1107 from lzpeng723/v5-dev
This commit is contained in:
commit
6631d1ae3a
@ -73,11 +73,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user