|
|
@ -14,6 +14,7 @@ public class BodyReaderRequestWrapper extends HttpServletRequestWrapper {
|
|
|
|
private final byte[] buff;
|
|
|
|
private final byte[] buff;
|
|
|
|
public BodyReaderRequestWrapper(HttpServletRequest request) throws IOException {
|
|
|
|
public BodyReaderRequestWrapper(HttpServletRequest request) throws IOException {
|
|
|
|
super(request);
|
|
|
|
super(request);
|
|
|
|
|
|
|
|
// 将 body 中的内容读取到 buff 中
|
|
|
|
InputStream is = request.getInputStream();
|
|
|
|
InputStream is = request.getInputStream();
|
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
|
|
|
byte[] b = new byte[1024];
|
|
|
|
byte[] b = new byte[1024];
|
|
|
|