v3.5.0 fix:RepeatedlyRequestWrapper.ServletInputStream 实现available方法

This commit is contained in:
YunaiV 2022-02-15 20:03:34 +08:00
parent 053007ef9e
commit 3ac2b9973c

View File

@ -46,17 +46,22 @@ public class CacheRequestBodyWrapper extends HttpServletRequestWrapper {
@Override @Override
public boolean isFinished() { public boolean isFinished() {
return true; return false;
} }
@Override @Override
public boolean isReady() { public boolean isReady() {
return true; return false;
} }
@Override @Override
public void setReadListener(ReadListener readListener) {} public void setReadListener(ReadListener readListener) {}
@Override
public int available() {
return body.length;
}
}; };
} }