httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1426993 - /httpd/test/framework/trunk/t/apache/http_strict.t
Date Sun, 30 Dec 2012 21:26:22 GMT
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],



Mime
View raw message