RuoYi
2021-08-11 7be17ea89a0f18e47bccd7560d4dacc82891eb82
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;
            }
        };
    }