This is an automated email from the ASF dual-hosted git repository. johnnyv pushed a commit to branch 2.2.X in repository https://gitbox.apache.org/repos/asf/mina.git
commit 93a1428f2e7a393f074ff8c7a07c192c95458af0 Author: Jonathan Valliere <john...@apache.org> AuthorDate: Thu Sep 9 12:45:54 2021 -0400 Corrects HTTP decode for pipeline requests --- mina-http/src/main/java/org/apache/mina/http/HttpServerDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mina-http/src/main/java/org/apache/mina/http/HttpServerDecoder.java b/mina-http/src/main/java/org/apache/mina/http/HttpServerDecoder.java index 850d9f1..fa7d35d 100644 --- a/mina-http/src/main/java/org/apache/mina/http/HttpServerDecoder.java +++ b/mina-http/src/main/java/org/apache/mina/http/HttpServerDecoder.java @@ -194,7 +194,7 @@ public class HttpServerDecoder implements ProtocolDecoder { } private HttpRequestImpl parseHttpRequestHead(ByteBuffer buffer) { - String raw = new String(buffer.array(), 0, buffer.limit()); + String raw = new String(buffer.array(), buffer.position(), buffer.remaining()); String[] headersAndBody = RAW_VALUE_PATTERN.split(raw, -1); if (headersAndBody.length <= 1) {