!193 修复request.getInputStream() 重复读取错误问题

Merge pull request !193 from MccRay/master
This commit is contained in:
若依 2021-03-27 13:22:01 +08:00 committed by Gitee
commit 266a5e844f

View File

@ -30,7 +30,7 @@ public class RepeatableFilter implements Filter
{
ServletRequest requestWrapper = null;
if (request instanceof HttpServletRequest
&& StringUtils.equalsAnyIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE))
&& StringUtils.startsWithIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE))
{
requestWrapper = new RepeatedlyRequestWrapper((HttpServletRequest) request, response);
}