This is an automated email from the ASF dual-hosted git repository.
markt 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 87949a3b27 Fix backport
87949a3b27 is described below
commit 87949a3b271080d0746b372231d9aee0375570fd
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Apr 10 11:33:05 2025 +0100
Fix backport
---
test/org/apache/catalina/util/TestFilterUtil.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/org/apache/catalina/util/TestFilterUtil.java
b/test/org/apache/catalina/util/TestFilterUtil.java
index 3af9c409a6..f257525fab 100644
--- a/test/org/apache/catalina/util/TestFilterUtil.java
+++ b/test/org/apache/catalina/util/TestFilterUtil.java
@@ -17,7 +17,6 @@
package org.apache.catalina.util;
import java.io.IOException;
-import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicInteger;
import jakarta.servlet.FilterChain;
@@ -114,7 +113,7 @@ public class TestFilterUtil extends TomcatBaseTest {
@Override
public void service(ServletRequest req, ServletResponse res) throws
ServletException, IOException {
res.setContentType("text/plain");
- res.setCharacterEncoding(StandardCharsets.UTF_8);
+ res.setCharacterEncoding("UTF-8");
res.getWriter().print("OK");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]