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
The following commit(s) were added to refs/heads/8.5.x by this push: new 13dff65 Deprecated method needs same simplification. 13dff65 is described below commit 13dff659f1bd2cd7afa2a1013f097f66fd575aa6 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Sep 9 12:54:28 2019 +0100 Deprecated method needs same simplification. --- java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java index 7da9ea8..4cd7f7a 100644 --- a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.apache.coyote.http11.filters; import java.io.IOException; @@ -93,7 +92,7 @@ public class ChunkedOutputFilter implements OutputFilter { int pos = calculateChunkHeader(result); - chunkHeader.position(pos + 1).limit(chunkHeader.position() + 9 - pos); + chunkHeader.position(pos).limit(10); buffer.doWrite(chunkHeader); buffer.doWrite(chunk); @@ -102,7 +101,6 @@ public class ChunkedOutputFilter implements OutputFilter { buffer.doWrite(chunkHeader); return result; - } @@ -126,7 +124,6 @@ public class ChunkedOutputFilter implements OutputFilter { buffer.doWrite(chunkHeader); return result; - } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org