|
|
@ -99,6 +99,6 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper |
|
|
|
public boolean isJsonRequest() |
|
|
|
public boolean isJsonRequest() |
|
|
|
{ |
|
|
|
{ |
|
|
|
String header = super.getHeader(HttpHeaders.CONTENT_TYPE); |
|
|
|
String header = super.getHeader(HttpHeaders.CONTENT_TYPE); |
|
|
|
return MediaType.APPLICATION_JSON_VALUE.equalsIgnoreCase(header); |
|
|
|
return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |