This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit f42e1bb5f4212d380e629ae117317f47c4927556 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Sep 9 11:35:52 2019 +0100 Simplify position is set to: pos + 1 Then limit is set to position + 9 - pos = pos + 1 + 9 - pos = 1 + 9 = 10 --- java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java index 3560c8a..063f462 100644 --- a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java @@ -117,7 +117,7 @@ public class ChunkedOutputFilter implements OutputFilter { int pos = calculateChunkHeader(result); - chunkHeader.position(pos + 1).limit(chunkHeader.position() + 9 - pos); + chunkHeader.position(pos + 1).limit(10); buffer.doWrite(chunkHeader); buffer.doWrite(chunk); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org