RuoYi
2022-06-25 9d7e32fb073842eb9d346878b49ce5bacfa3b51c
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;
            }
        };
    }