This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 9c5da5db7f fix Bug 66084
9c5da5db7f is described below
commit 9c5da5db7f8598d1750d1734d4de67e4b6e5e999
Author: lihan <[email protected]>
AuthorDate: Tue May 24 11:20:44 2022 +0800
fix Bug 66084
---
java/org/apache/catalina/connector/OutputBuffer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/connector/OutputBuffer.java
b/java/org/apache/catalina/connector/OutputBuffer.java
index af2c9afd85..91b5e0f767 100644
--- a/java/org/apache/catalina/connector/OutputBuffer.java
+++ b/java/org/apache/catalina/connector/OutputBuffer.java
@@ -399,8 +399,9 @@ public class OutputBuffer extends Writer {
return;
}
+ int remaining = from.remaining();
append(from);
- bytesWritten += from.remaining();
+ bytesWritten += remaining;
// if called from within flush(), then immediately flush
// remaining bytes
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]