RuoYi
2021-11-30 9bc730866f583847c33a944aa20d7ea5e3c0c7ac
ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java
@@ -38,16 +38,19 @@
    @Override
    public ServletInputStream getInputStream() throws IOException
    {
        final ByteArrayInputStream bais = new ByteArrayInputStream(body);
        return new ServletInputStream()
        {
            @Override
            public int read() throws IOException
            {
                return bais.read();
            }
            @Override
            public int available() throws IOException
            {
                return body.length;
            }
            @Override
@@ -66,11 +69,6 @@
            public void setReadListener(ReadListener readListener)
            {
            }
            @Override
            public int available() throws IOException {
                return body.length;
            }
        };
    }