update ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java.

修复 getInputStream() has already been called for this request异常问题
This commit is contained in:
MccRay 2021-03-25 17:39:51 +08:00 committed by Gitee
parent 090e258bf9
commit 0822680158
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class RepeatableFilter implements Filter
{ {
ServletRequest requestWrapper = null; ServletRequest requestWrapper = null;
if (request instanceof HttpServletRequest 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); requestWrapper = new RepeatedlyRequestWrapper((HttpServletRequest) request, response);
} }