This is an automated email from the ASF dual-hosted git repository.
remm 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 4c9070b2da Make the HEAD test more meaningful by writing actual content
4c9070b2da is described below
commit 4c9070b2da155f17d451b424c7a763fa12269de6
Author: remm <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]