This commit is contained in:
Redkale
2018-07-30 16:02:26 +08:00
parent 2174de2b71
commit 919e7aa5c6

View File

@@ -166,7 +166,9 @@ public class HttpRequest extends Request<HttpContext> {
}
}
array.clear();
if (buffer.hasRemaining()) array.write(buffer, buffer.remaining());
if (!context.isPipeline()) {
if (buffer.hasRemaining()) array.write(buffer, buffer.remaining());
}
if (this.contentType != null && this.contentType.contains("boundary=")) {
this.boundary = true;
}