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/04/27 10:13:19 UTC

svn commit: r1830328 - /tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java

Author: markt
Date: Fri Apr 27 10:13:19 2018
New Revision: 1830328

URL: http://svn.apache.org/viewvc?rev=1830328&view=rev
Log:
Fix an additional failing test

Modified:
    tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java

Modified: tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java?rev=1830328&r1=1830327&r2=1830328&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java (original)
+++ tomcat/tc7.0.x/trunk/test/org/apache/coyote/http11/TestAbstractHttp11Processor.java Fri Apr 27 10:13:19 2018
@@ -627,8 +627,7 @@ public class TestAbstractHttp11Processor
 
         Non2xxResponseClient client = new Non2xxResponseClient(useExpectation);
         client.setPort(getPort());
-        client.doResourceRequest("GET http://localhost:" + getPort()
-                + "/echo HTTP/1.1", "HelloWorld");
+        client.doResourceRequest("GET /echo HTTP/1.1", "HelloWorld");
         Assert.assertTrue(client.isResponse403());
         Assert.assertTrue(client.checkConnectionHeader());
     }
@@ -859,6 +858,7 @@ public class TestAbstractHttp11Processor
                 throws Exception {
             StringBuilder requestHead = new StringBuilder();
             requestHead.append(resourceUri).append(CRLF);
+            requestHead.append("host: localhost:" + getPort() + CRLF);
 
             if (useExpectation) {
                 requestHead.append(HEADER_EXPECT).append(CRLF);



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