httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1502208 - /httpd/test/framework/trunk/t/modules/deflate.t
Date Thu, 11 Jul 2013 12:51:36 GMT
Author: jim
Date: Thu Jul 11 12:51:36 2013
New Revision: 1502208

URL: http://svn.apache.org/r1502208
Log:
Run clean with 2.4.x again

Modified:
    httpd/test/framework/trunk/t/modules/deflate.t

Modified: httpd/test/framework/trunk/t/modules/deflate.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/deflate.t?rev=1502208&r1=1502207&r2=1502208&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/deflate.t (original)
+++ httpd/test/framework/trunk/t/modules/deflate.t Thu Jul 11 12:51:36 2013
@@ -52,10 +52,14 @@ for my $server_deflate_uri (@server_defl
                                  content => $deflated_str);
 
     ok $original_str eq $inflated_str;
-
     my $resp = POST($server_inflate_uri, @inflate_headers,
                     content => "foo123456789012346");
-    ok($resp->code, 400, "did not detect invalid compressed body for $server_deflate_uri");
+    if (have_min_apache_version("2.5.0")) {
+        ok($resp->code, 400, "did not detect invalid compressed body for $server_deflate_uri");
+    }
+    else {
+        ok($resp->code, 200, "invalid response for $server_deflate_uri");
+    }
     
     # XXX This does not seem to work, does zlib ignore trailing garbage?
     #$resp = POST($server_inflate_uri, @inflate_headers,
@@ -71,8 +75,12 @@ for my $server_deflate_uri (@server_defl
         ok 1;
     }
     else {
-        ok($resp->code, 400,
-           "did not detect broken compressed body for $server_deflate_uri");
+        if (have_min_apache_version("2.5.0")) {
+            ok($resp->code, 400, "did not detect broken compressed body for $server_deflate_uri");
+        }
+        else {
+            ok($resp->code, 200, "invalid response for $server_deflate_uri");
+        }
     }
 }
 



Mime
View raw message