From 3ac2b9973ca667c66a81c4c336457404b417449e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 15 Feb 2022 20:03:34 +0800 Subject: [PATCH] =?UTF-8?q?v3.5.0=20fix:RepeatedlyRequestWrapper.ServletIn?= =?UTF-8?q?putStream=20=E5=AE=9E=E7=8E=B0available=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/core/filter/CacheRequestBodyWrapper.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/filter/CacheRequestBodyWrapper.java b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/filter/CacheRequestBodyWrapper.java index f02ba5eb6..cf65ad3da 100644 --- a/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/filter/CacheRequestBodyWrapper.java +++ b/yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/filter/CacheRequestBodyWrapper.java @@ -46,17 +46,22 @@ public class CacheRequestBodyWrapper extends HttpServletRequestWrapper { @Override public boolean isFinished() { - return true; + return false; } @Override public boolean isReady() { - return true; + return false; } @Override public void setReadListener(ReadListener readListener) {} + @Override + public int available() { + return body.length; + } + }; }