You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/09/09 12:06:59 UTC
[tomcat] 02/02: Simplify / align(ish) with 8.5.x.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit fa34afd8bb57ce73fd7cb4c1ae2b0379cb0bc001
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Sep 9 13:00:02 2019 +0100
Simplify / align(ish) with 8.5.x.
---
java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
index d6ef494..9d5f8ae 100644
--- a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
+++ b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
@@ -105,14 +105,14 @@ public class ChunkedOutputFilter implements OutputFilter {
}
// Calculate chunk header
- int pos = 7;
+ int pos = 8;
int current = result;
while (current > 0) {
int digit = current % 16;
current = current / 16;
- chunkLength[pos--] = HexUtils.getHex(digit);
+ chunkLength[--pos] = HexUtils.getHex(digit);
}
- chunkHeader.setBytes(chunkLength, pos + 1, 9 - pos);
+ chunkHeader.setBytes(chunkLength, pos, 10 - pos);
buffer.doWrite(chunkHeader, res);
buffer.doWrite(chunk, res);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org