update 更改魔法值

2.X
疯狂的狮子Li 3 years ago
parent b964c493c4
commit a19a59697f

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

Loading…
Cancel
Save