疯狂的狮子li
2021-05-14 590f4e07af615abe48a502311161a1c982f3f4c3
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;
            }
        };
    }