Commit 08226801582a59e853a112f0f97b6bb6efc563da
Committed by
Gitee
1 parent
090e258b
update ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java.
修复 getInputStream() has already been called for this request异常问题
Showing
1 changed file
with
1 additions
and
1 deletions
ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java
... | ... | @@ -30,7 +30,7 @@ public class RepeatableFilter implements Filter |
30 | 30 | { |
31 | 31 | ServletRequest requestWrapper = null; |
32 | 32 | if (request instanceof HttpServletRequest |
33 | - && StringUtils.equalsAnyIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE)) | |
33 | + && StringUtils.startsWithIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE)) | |
34 | 34 | { |
35 | 35 | requestWrapper = new RepeatedlyRequestWrapper((HttpServletRequest) request, response); |
36 | 36 | } |
... | ... |