|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.ruoyi.common.filter;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.http.HtmlUtil;
|
|
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
|
@ -100,6 +101,6 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
|
|
|
|
|
public boolean isJsonRequest()
|
|
|
|
|
{
|
|
|
|
|
String header = super.getHeader(HttpHeaders.CONTENT_TYPE);
|
|
|
|
|
return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE);
|
|
|
|
|
return StrUtil.startWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|