Skip to content

Commit

Permalink
Backport fix for malformed HTTP decoder loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-valliere committed Oct 15, 2021
1 parent faf9e5c commit 3a91690
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void dispose(IoSession session) throws Exception {
}

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) {
Expand Down

0 comments on commit 3a91690

Please sign in to comment.