update ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java.
增加available方法于XssHttpServletRequestWrapper
| | |
| | |
|
| | | // xss过滤
|
| | | json = EscapeUtil.clean(json).trim();
|
| | | final ByteArrayInputStream bis = new ByteArrayInputStream(json.getBytes("utf-8"));
|
| | | byte[] jsonBytes = json.getBytes("utf-8");
|
| | | final ByteArrayInputStream bis = new ByteArrayInputStream(jsonBytes);
|
| | | return new ServletInputStream()
|
| | | {
|
| | | @Override
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public int available() throws IOException {
|
| | | return jsonBytes.length;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void setReadListener(ReadListener readListener)
|
| | | {
|
| | | }
|