Closed
Description
Describe the bug
Version 4.1.3 (main branch)
@Override
public ServletInputStream getInputStream() {
InputStream stream = new ByteArrayInputStream(this.content);
return new ServletInputStream() {
boolean finished = false;
@Override
public int read() throws IOException {
int readByte = stream.read();
if (readByte == -1) {
finished = true;
}
return readByte;
}
@Override
public void setReadListener(ReadListener readListener) {
}
@Override
public boolean isReady() {
return !finished;
}
@Override
public boolean isFinished() {
return finished;
}
};
}
and content is declared nullable
@Nullable
private byte[] content;
It can append when the body of POST request is empty.
Metadata
Metadata
Assignees
Labels
No labels