httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1779657 - /httpd/test/framework/trunk/t/apache/http_strict.t
Date Fri, 20 Jan 2017 17:38:36 GMT
Author: wrowe
Date: Fri Jan 20 17:38:36 2017
New Revision: 1779657

URL: http://svn.apache.org/viewvc?rev=1779657&view=rev
Log:
Test recently disclosed quesitonable whitespace occurances

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=1779657&r1=1779656&r2=1779657&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Fri Jan 20 17:38:36 2017
@@ -21,6 +21,9 @@ my @test_cases = (
     [ "G/T / HTTP/1.0\r\n\r\n"                      => 400],
     [ "GET /\0 HTTP/1.0\r\n\r\n"                    => 400],
     [ "GET / HTTP/1.0\0\r\n\r\n"                    => 400],
+    [ "GET\f/ HTTP/1.0\r\n\r\n"                     => 400],
+    [ "GET\r/ HTTP/1.0\r\n\r\n"                     => 400],
+    [ "GET\t/ HTTP/1.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],
@@ -34,11 +37,13 @@ my @test_cases = (
     [ "GET / HTTP/0.8\r\n\r\n"                      => 0],
     [ "GET /\x01 HTTP/1.0\r\n\r\n"                  => 400],
     [ "GET / HTTP/1.0\r\nFoo: bar\r\n\r\n"          => 1],
+    [ "GET / HTTP/1.0\r\nFoo:bar\r\n\r\n"           => 200],
     [ "GET / HTTP/1.0\r\nFoo: b\0ar\r\n\r\n"        => 400],
     [ "GET / HTTP/1.0\r\nFoo: b\x01ar\r\n\r\n"      => 400],
+    [ "GET / HTTP/1.0\r\nFoo\r\n\r\n"               => 400],
     [ "GET / HTTP/1.0\r\nFoo bar\r\n\r\n"           => 400],
     [ "GET / HTTP/1.0\r\n: bar\r\n\r\n"             => 400],
-    [ "GET / HTTP/1.0\r\nFoo:bar\r\n\r\n"           => 200],
+    [ "GET / HTTP/1.0\r\nFoo bar:bash\r\n\r\n"      => 400],
     [ "GET / HTTP/1.0\r\nFoo :bar\r\n\r\n"          => 400],
     [ "GET / HTTP/1.0\r\n Foo:bar\r\n\r\n"          => 400],
     [ "GET / HTTP/1.0\r\nF\x01o: bar\r\n\r\n"       => 400],



Mime
View raw message