Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
266a5e84
Commit
266a5e84
authored
Mar 27, 2021
by
若依
Committed by
Gitee
Mar 27, 2021
Browse files
!193 修复request.getInputStream() 重复读取错误问题
Merge pull request !193 from MccRay/master
parents
090e258b
08226801
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java
View file @
266a5e84
...
...
@@ -30,7 +30,7 @@ public class RepeatableFilter implements Filter
{
ServletRequest
requestWrapper
=
null
;
if
(
request
instanceof
HttpServletRequest
&&
StringUtils
.
equalsAny
IgnoreCase
(
request
.
getContentType
(),
MediaType
.
APPLICATION_JSON_VALUE
))
&&
StringUtils
.
startsWith
IgnoreCase
(
request
.
getContentType
(),
MediaType
.
APPLICATION_JSON_VALUE
))
{
requestWrapper
=
new
RepeatedlyRequestWrapper
((
HttpServletRequest
)
request
,
response
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment