This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 2ebd99d6ae Fix back-port
2ebd99d6ae is described below

commit 2ebd99d6ae1890c7636599e04dab8600e3e1e33d
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Jun 6 09:59:54 2026 +0100

    Fix back-port
---
 test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java 
b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
index c8cb65141b..e4017fe2cf 100644
--- a/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
+++ b/test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
@@ -353,7 +353,7 @@ public class TestChunkedInputFilter extends TomcatBaseTest {
 
     private String createTrailerHeader(int totalTrailerSize) {
         int valueSize = totalTrailerSize - "x-trailer: ".length() - (2 * 
CRLF.length());
-        return "x-trailer: " + "x".repeat(valueSize);
+        return "x-trailer: " + new String(new char[valueSize]).replace("\0", 
"x");
     }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to