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

remm 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 db29dfa72e Allow changing the server string
db29dfa72e is described below

commit db29dfa72e3cb5f9eb1f6a1701f5b6bc3b7b5d36
Author: remm <[email protected]>
AuthorDate: Thu Oct 30 10:18:23 2025 +0100

    Allow changing the server string
---
 test/org/apache/catalina/manager/TestManagerWebapp.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/manager/TestManagerWebapp.java 
b/test/org/apache/catalina/manager/TestManagerWebapp.java
index fc47413f8d..b4388190de 100644
--- a/test/org/apache/catalina/manager/TestManagerWebapp.java
+++ b/test/org/apache/catalina/manager/TestManagerWebapp.java
@@ -43,6 +43,7 @@ import org.apache.catalina.startup.Tomcat;
 import org.apache.catalina.startup.TomcatBaseTest;
 import org.apache.catalina.storeconfig.StoreConfigLifecycleListener;
 import org.apache.catalina.util.IOTools;
+import org.apache.catalina.util.ServerInfo;
 import org.apache.catalina.util.URLEncoder;
 
 
@@ -198,7 +199,7 @@ public class TestManagerWebapp extends TomcatBaseTest {
         client.connect();
         client.processRequest(true);
         Assert.assertEquals(HttpServletResponse.SC_OK, client.getStatusCode());
-        Assert.assertTrue(client.getResponseBody().contains("[Apache Tomcat"));
+        Assert.assertTrue(client.getResponseBody().contains("[" + 
ServerInfo.getServerInfo() + "]"));
 
         // @formatter:off
         client.setRequest(new String[] {


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

Reply via email to