This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new dd0baad354 Review c71512e2 - need to flip buffer before write
dd0baad354 is described below
commit dd0baad354bd0f9376494667cf5a733abbf46950
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 3 09:02:58 2026 +0100
Review c71512e2 - need to flip buffer before write
---
java/org/apache/coyote/http11/filters/GzipOutputFilter.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/org/apache/coyote/http11/filters/GzipOutputFilter.java
b/java/org/apache/coyote/http11/filters/GzipOutputFilter.java
index 24132e05c0..8351a71647 100644
--- a/java/org/apache/coyote/http11/filters/GzipOutputFilter.java
+++ b/java/org/apache/coyote/http11/filters/GzipOutputFilter.java
@@ -169,6 +169,7 @@ public class GzipOutputFilter implements OutputFilter {
// compatibility with Sun JDK 1.4.0
outputChunk.clear();
outputChunk.put((byte) (b & 0xff));
+ outputChunk.flip();
buffer.doWrite(outputChunk);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]