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 2018/10/08 09:48:12 UTC

svn commit: r1843123 - /tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java

Author: markt
Date: Mon Oct  8 09:48:12 2018
New Revision: 1843123

URL: http://svn.apache.org/viewvc?rev=1843123&view=rev
Log:
Add additional option required in back-ported tests for 8.5.x as the default for allowHostHeaderMismatch is true in 8.5.x.

Modified:
    tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java

Modified: tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java?rev=1843123&r1=1843122&r2=1843123&view=diff
==============================================================================
--- tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java (original)
+++ tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/TestHttp11Processor.java Mon Oct  8 09:48:12 2018
@@ -1226,6 +1226,8 @@ public class TestHttp11Processor extends
         // request
         tomcat.getConnector().setAttribute("maxKeepAliveRequests", "1");
 
+        tomcat.getConnector().setAttribute("allowHostHeaderMismatch", "false");
+
         // No file system docBase required
         Context ctx = tomcat.addContext("", null);
 
@@ -1263,6 +1265,8 @@ public class TestHttp11Processor extends
         // request
         tomcat.getConnector().setAttribute("maxKeepAliveRequests", "1");
 
+        tomcat.getConnector().setAttribute("allowHostHeaderMismatch", "false");
+
         // No file system docBase required
         Context ctx = tomcat.addContext("", null);
 
@@ -1300,6 +1304,8 @@ public class TestHttp11Processor extends
         // request
         tomcat.getConnector().setAttribute("maxKeepAliveRequests", "1");
 
+        tomcat.getConnector().setAttribute("allowHostHeaderMismatch", "false");
+
         // No file system docBase required
         Context ctx = tomcat.addContext("", null);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org