You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2017/06/01 12:22:09 UTC

svn commit: r1797213 - /httpd/test/framework/trunk/t/modules/proxy.t

Author: covener
Date: Thu Jun  1 12:22:09 2017
New Revision: 1797213

URL: http://svn.apache.org/viewvc?rev=1797213&view=rev
Log:
per-dir proxypass not present in 2.2

(or doesn't work -- this is a new test for a 2.4 regression)


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

Modified: httpd/test/framework/trunk/t/modules/proxy.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy.t?rev=1797213&r1=1797212&r2=1797213&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy.t Thu Jun  1 12:22:09 2017
@@ -19,9 +19,15 @@ my $r = GET("/reverse/");
 ok t_cmp($r->code, 200, "reverse proxy to index.html");
 ok t_cmp($r->content, qr/^welcome to /, "reverse proxied body");
 
-$r = GET("/reverse/locproxy/");
-ok t_cmp($r->code, 200, "reverse Location-proxy to index.html");
-ok t_cmp($r->content, qr/^welcome to /, "reverse Location-proxied body");
+if (have_min_apache_version('2.4.0')) {
+    $r = GET("/reverse/locproxy/");
+    ok t_cmp($r->code, 200, "reverse Location-proxy to index.html");
+    ok t_cmp($r->content, qr/^welcome to /, "reverse Location-proxied body");
+}
+else { 
+    skip "skipping per-location test with httpd <2.4";
+    skip "skipping per-location test with httpd <2.4";
+}
 
 if (have_min_apache_version('2.4.26')) {
     # This location should get trapped by the SetEnvIf and NOT be