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

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

commit d1157244713f58a86e3cd991fef74b33d24b128f
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 db12d86694..273fdc6ef2 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