瀏覽代碼

!196 RepeatedlyRequestWrapper.ServletInputStream 实现available方法
Merge pull request !196 from wangyang/master

若依 3 年之前
父節點
當前提交
fc57e91b80
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java

+ 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;
+            }
         };
     }
 }