update 优化魔法值

This commit is contained in:
zendwang
2022-07-04 11:30:43 +08:00
parent b9931cda30
commit 686068c8ed
6 changed files with 13 additions and 10 deletions

View File

@ -117,7 +117,7 @@ public class ServletUtils extends ServletUtil {
public static boolean isAjaxRequest(HttpServletRequest request) {
String accept = request.getHeader("accept");
if (accept != null && accept.contains("application/json")) {
if (accept != null && accept.contains(MediaType.APPLICATION_JSON_VALUE)) {
return true;
}