优化对 .json .xml 后缀的URI会话失效后传递支持。

This commit is contained in:
thinkgem
2019-04-08 10:04:24 +08:00
parent 0729db8ae8
commit 16ba2c92a0
2 changed files with 10 additions and 1 deletions

View File

@@ -110,7 +110,8 @@ public class ServletUtils {
}
String uri = request.getRequestURI();
if (StringUtils.inStringIgnoreCase(uri, ".json", ".xml")){
if (StringUtils.endsWithIgnoreCase(uri, ".json")
|| StringUtils.endsWithIgnoreCase(uri, ".xml")){
return true;
}