This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new ec885f2c68 Make the HEAD test more meaningful by writing actual content ec885f2c68 is described below commit ec885f2c6839e0cb421c4aebb92ab7f78b2dcbab Author: remm <r...@apache.org> AuthorDate: Mon Oct 7 09:19:10 2024 +0200 Make the HEAD test more meaningful by writing actual content --- test/org/apache/coyote/http11/TestHttp11Processor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/org/apache/coyote/http11/TestHttp11Processor.java b/test/org/apache/coyote/http11/TestHttp11Processor.java index c1fad26110..fed616435b 100644 --- a/test/org/apache/coyote/http11/TestHttp11Processor.java +++ b/test/org/apache/coyote/http11/TestHttp11Processor.java @@ -813,8 +813,8 @@ public class TestHttp11Processor extends TomcatBaseTest { Assert.assertEquals(HttpServletResponse.SC_OK, getStatus); Assert.assertEquals(HttpServletResponse.SC_OK, headStatus); - Assert.assertEquals(0, getBody.getLength()); - Assert.assertEquals(0, headBody.getLength()); + Assert.assertEquals(2, getBody.getLength()); + Assert.assertEquals(2, headBody.getLength()); if (getHeaders.containsKey("Content-Length")) { Assert.assertEquals(getHeaders.get("Content-Length"), headHeaders.get("Content-Length")); @@ -830,10 +830,12 @@ public class TestHttp11Processor extends TomcatBaseTest { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().print("OK"); } @Override protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().print("OK"); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org