This is an automated email from the ASF dual-hosted git repository. johnnyv pushed a commit to branch 2.1.X in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.1.X by this push: new 7dc266a Fixes HTTP pipeline processing issue 7dc266a is described below commit 7dc266ac9a74f50669039c10be3d2defa2ac8b58 Author: Jonathan Valliere <john...@apache.org> AuthorDate: Thu Sep 9 12:47:52 2021 -0400 Fixes HTTP pipeline processing issue --- 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 30c1f81..87938e2 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) {