On Sat, Oct 15, 2016 at 4:20 PM, Yann Ylavic <ylavic....@gmail.com> wrote:
> On Sat, Oct 15, 2016 at 3:10 PM, Jim Jagielski <j...@jagunet.com> wrote:
>> Anyone...? Any ideas??
>
> This seems to come from r1756746, which I think should be trunk
> specific (for now).

The attached works for me..
Index: t/apache/headers.t
===================================================================
--- t/apache/headers.t	(revision 1765074)
+++ t/apache/headers.t	(working copy)
@@ -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 @@ use Apache::TestRequest;
                "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";
 

Reply via email to