Bladeren bron

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

若依 3 jaren geleden
bovenliggende
commit
fc57e91b80
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  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;
+            }
         };
     }
 }