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 b9ca56417a Fix backport b9ca56417a is described below commit b9ca56417aaccd845bf5b1af9e5378cb56471ff7 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed May 7 14:23:40 2025 +0100 Fix backport --- test/org/apache/catalina/webresources/TestWebResourceContentType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/org/apache/catalina/webresources/TestWebResourceContentType.java b/test/org/apache/catalina/webresources/TestWebResourceContentType.java index 6f74f54760..0fbea8a0b2 100644 --- a/test/org/apache/catalina/webresources/TestWebResourceContentType.java +++ b/test/org/apache/catalina/webresources/TestWebResourceContentType.java @@ -64,7 +64,7 @@ public class TestWebResourceContentType extends TomcatBaseTest { int rc = getUrl("http://localhost:" + getPort() + "/test/anything", body, resHead); Assert.assertEquals(HttpServletResponse.SC_OK, rc); - Assert.assertEquals("text/html", resHead.get("Content-Type").getFirst()); + Assert.assertEquals("text/html", resHead.get("Content-Type").get(0)); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org