mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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);
|
file = FileUtil.file(file, indexFileName);
|
||||||
if (file.exists() && file.isFile()) {
|
if (file.exists() && file.isFile()) {
|
||||||
response.write(file);
|
response.write(file);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else{
|
} else{
|
||||||
final String name = request.getParam("name");
|
final String name = request.getParam("name");
|
||||||
response.write(file, name);
|
response.write(file, name);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user