(tomcat) branch 10.1.x updated: Fix back-port

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178645514173.2136664.12152195001630373914@gitbox3-he-fi.apache.org>
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 66384d150b Fix back-port
66384d150b is described below

commit 66384d150bb94943e92dbfbf188b85115f004583
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Aug 11 14:32:13 2026 +0100

    Fix back-port
---
 test/org/apache/catalina/authenticator/TestFormAuthenticatorD.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorD.java b/test/org/apache/catalina/authenticator/TestFormAuthenticatorD.java
index cdc9d6977c..2506aab1e5 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorD.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorD.java
@@ -18,7 +18,6 @@ package org.apache.catalina.authenticator;
 
 import java.io.IOException;
 import java.io.PrintWriter;
-import java.nio.charset.StandardCharsets;
 
 import jakarta.servlet.ServletException;
 import jakarta.servlet.http.HttpServlet;
@@ -263,7 +262,7 @@ public class TestFormAuthenticatorD extends TomcatBaseTest {
         @Override
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
             resp.setContentType("text/html");
-            resp.setCharacterEncoding(StandardCharsets.UTF_8);
+            resp.setCharacterEncoding("UTF-8");
             PrintWriter pw = resp.getWriter();
             pw.println("<html>");
             pw.println("<body>");
@@ -285,7 +284,7 @@ public class TestFormAuthenticatorD extends TomcatBaseTest {
         @Override
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
             resp.setContentType("text/plain");
-            resp.setCharacterEncoding(StandardCharsets.UTF_8);
+            resp.setCharacterEncoding("UTF-8");
             PrintWriter pw = resp.getWriter();
             pw.println("Login failed");
         }
@@ -299,7 +298,7 @@ public class TestFormAuthenticatorD extends TomcatBaseTest {
         @Override
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
             resp.setContentType("text/plain");
-            resp.setCharacterEncoding(StandardCharsets.UTF_8);
+            resp.setCharacterEncoding("UTF-8");
             PrintWriter pw = resp.getWriter();
             pw.println(req.getMethod());
             pw.println(req.getRemoteUser());
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.