This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new d646b29f9e Fix backport
d646b29f9e is described below
commit d646b29f9e4eda36b8c31c012a694ba8c9d714c2
Author: Mark Thomas <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]