httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1758392 - /httpd/test/framework/trunk/t/apache/http_strict.t
Date Tue, 30 Aug 2016 14:06:09 GMT
Author: wrowe
Date: Tue Aug 30 14:06:09 2016
New Revision: 1758392

URL: http://svn.apache.org/viewvc?rev=1758392&view=rev
Log:
Test now has a different (correct) response to invalid \n line termination

Modified:
    httpd/test/framework/trunk/t/apache/http_strict.t

Modified: httpd/test/framework/trunk/t/apache/http_strict.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/http_strict.t?rev=1758392&r1=1758391&r2=1758392&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Tue Aug 30 14:06:09 2016
@@ -14,7 +14,7 @@ use Data::Dumper;
 
 my @test_cases = (
     [ "GET / HTTP/1.0\r\n\r\n"                      => 1],
-    [ "GET / HTTP/1.0\n\n"                          => 1],
+    [ "GET / HTTP/1.0\n\n"                          => 400],
     [ "get / HTTP/1.0\r\n\r\n"                      => 501],
     [ "G ET / HTTP/1.0\r\n\r\n"                     => 400],
     [ "G\0ET / HTTP/1.0\r\n\r\n"                    => 400],
@@ -22,6 +22,7 @@ my @test_cases = (
     [ "GET /\0 HTTP/1.0\r\n\r\n"                    => 400],
     [ "GET / HTTP/1.0\0\r\n\r\n"                    => 400],
     [ "GET / HTT/1.0\r\n\r\n"                       => 0],
+    [ "GET / HTTP/1.0\r\nHost: localhost\r\n\r\n"   => 1],
     [ "GET / HTTP/2.0\r\nHost: localhost\r\n\r\n"   => 1],
     [ "GET / HTTP/1.2\r\nHost: localhost\r\n\r\n"   => 1],
     [ "GET / HTTP/1.11\r\nHost: localhost\r\n\r\n"  => 400],



Mime
View raw message