You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2012/12/30 22:26:22 UTC

svn commit: r1426993 - /httpd/test/framework/trunk/t/apache/http_strict.t

Author: sf
Date: Sun Dec 30 21:26:21 2012
New Revision: 1426993

URL: http://svn.apache.org/viewvc?rev=1426993&view=rev
Log:
add/change some test cases according to HTTPbis draft

not all of them pass, yet

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=1426993&r1=1426992&r2=1426993&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Sun Dec 30 21:26:21 2012
@@ -23,7 +23,9 @@ my @test_cases = (
     [ "GET / HTT/1.0\r\n\r\n"                       => 0],
     [ "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.0  \r\nHost: localhost\r\n\r\n" => 1],
+    [ "GET / HTTP/1.11\r\nHost: localhost\r\n\r\n"  => 400],
+    [ "GET / HTTP/10.0\r\nHost: localhost\r\n\r\n"  => 400],
+    [ "GET / HTTP/1.0  \r\nHost: localhost\r\n\r\n" => 400],
     [ "GET / HTTP/1.0 x\r\nHost: localhost\r\n\r\n" => 400],
     [ "GET / HTTP/\r\nHost: localhost\r\n\r\n"      => 0],
     [ "GET / HTTP/0.9\r\n\r\n"                      => 0],
@@ -35,6 +37,8 @@ my @test_cases = (
     [ "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\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],
     [ "GET / HTTP/1.0\r\nF\ro: bar\r\n\r\n"         => 400],
     [ "GET / HTTP/1.0\r\nF\to: bar\r\n\r\n"         => 400],