Browse Source

fix:RepeatedlyRequestWrapper.ServletInputStream 实现available方法

wangyuanyang 3 years ago
parent
commit
347f36ceff

+ 5 - 0
ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java

@@ -67,6 +67,11 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
             {
 
             }
+
+            @Override
+            public int available() throws IOException {
+                return body.length;
+            }
         };
     }
 }