httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1765085 - /httpd/test/framework/trunk/t/apache/headers.t
Date Sat, 15 Oct 2016 15:33:55 GMT
Author: ylavic
Date: Sat Oct 15 15:33:55 2016
New Revision: 1765085

URL: http://svn.apache.org/viewvc?rev=1765085&view=rev
Log:
Condition new header parser behaviour until it is released in 2.4.x.

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

Modified: httpd/test/framework/trunk/t/apache/headers.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/headers.t?rev=1765085&r1=1765084&r2=1765085&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/headers.t (original)
+++ httpd/test/framework/trunk/t/apache/headers.t Sat Oct 15 15:33:55 2016
@@ -5,7 +5,9 @@ use Apache::Test;
 use Apache::TestUtil;
 use Apache::TestRequest;
 
-my %headers = (
+my %headers;
+if (have_min_apache_version("2.5.0")) {
+    %headers = (
                "Hello:World\r\n" => ["Hello", "World"],
 #              "Hello  :  World\r\n" => ["Hello", "World"],
 #              "Hello  :  World   \r\n" => ["Hello", "World"],
@@ -15,6 +17,19 @@ my %headers = (
                "Hello: Foo\r\n    Bar\r\n" => ["Hello", qr/Foo +Bar/],
                "Hello: Foo \r\n Bar\r\n" => ["Hello", qr/Foo +Bar/],
                );
+}
+else {
+    %headers = (
+               "Hello:World\n" => ["Hello", "World"],
+               "Hello  :  World\n" => ["Hello", "World"],
+               "Hello  :  World   \n" => ["Hello", "World"],
+               "Hello \t :  World  \n" => ["Hello", "World"],
+               "Hello: Foo\n Bar\n" => ["Hello", "Foo Bar"],
+               "Hello: Foo\n\tBar\n" => ["Hello", "Foo\tBar"],
+               "Hello: Foo\n    Bar\n" => ["Hello", qr/Foo +Bar/],
+               "Hello: Foo \n Bar\n" => ["Hello", qr/Foo +Bar/],
+               );
+}
 
 my $uri = "/modules/cgi/env.pl";
 



Mime
View raw message