You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/08/03 07:55:43 UTC
[tomcat] branch 8.5.x updated: This test assumes illegal headers will be rejected
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 824d846ad2 This test assumes illegal headers will be rejected
824d846ad2 is described below
commit 824d846ad2efde26e251fa0d17d2db55f32a784b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Aug 3 08:55:31 2022 +0100
This test assumes illegal headers will be rejected
---
test/org/apache/coyote/http11/TestHttp11InputBufferCRLF.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/org/apache/coyote/http11/TestHttp11InputBufferCRLF.java b/test/org/apache/coyote/http11/TestHttp11InputBufferCRLF.java
index c6e3d8593b..695d4cc7be 100644
--- a/test/org/apache/coyote/http11/TestHttp11InputBufferCRLF.java
+++ b/test/org/apache/coyote/http11/TestHttp11InputBufferCRLF.java
@@ -203,6 +203,8 @@ public class TestHttp11InputBufferCRLF extends TomcatBaseTest {
Tomcat tomcat = getTomcatInstance();
+ tomcat.getConnector().setProperty("rejectIllegalHeader", "true");
+
Context root = tomcat.addContext("", TEMP_DIR);
Tomcat.addServlet(root, "TesterServlet", new TesterServlet());
root.addServletMappingDecoded("/test", "TesterServlet");
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org