httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1090236 - in /httpd/test/framework/trunk/t: conf/extra.conf.in htdocs/modules/cgi/xother.pl.PL modules/filter.t
Date Fri, 08 Apr 2011 13:15:28 GMT
Author: jorton
Date: Fri Apr  8 13:15:28 2011
New Revision: 1090236

URL: http://svn.apache.org/viewvc?rev=1090236&view=rev
Log:
- add test case for ap_expr/mod_filter handling of 
  non-standard response headers from CGI scripts

Added:
    httpd/test/framework/trunk/t/htdocs/modules/cgi/xother.pl.PL
    httpd/test/framework/trunk/t/modules/filter.t
Modified:
    httpd/test/framework/trunk/t/conf/extra.conf.in

Modified: httpd/test/framework/trunk/t/conf/extra.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/extra.conf.in?rev=1090236&r1=1090235&r2=1090236&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/extra.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/extra.conf.in Fri Apr  8 13:15:28 2011
@@ -678,6 +678,19 @@ LimitRequestFields    32
 </IfModule>
 
 <IfModule mod_filter.c>
+   <IfModule mod_case_filter.c>
+      <Location /modules/cgi/xother.pl>
+        FilterDeclare xother CONTENT_SET
+        <IfVersion >= 2.3.9>
+          FilterProvider xother CASEFILTER "resp('X-Foo') == 'bar'"
+        </IfVersion>
+        <IfVersion < 2.3.0>
+          FilterProvider xother CASEFILTER resp=X-Foo bar
+        </IfVersion>
+        FilterChain xother
+      </Location>
+   </IfModule>
+
    <Directory @SERVERROOT@/htdocs/modules/filter>
        Options +Includes
        AddType text/html .shtml

Added: httpd/test/framework/trunk/t/htdocs/modules/cgi/xother.pl.PL
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/cgi/xother.pl.PL?rev=1090236&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/cgi/xother.pl.PL (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/cgi/xother.pl.PL Fri Apr  8 13:15:28 2011
@@ -0,0 +1,6 @@
+use strict;
+
+print "X-Foo: bar\n";
+print "Content-type: text/plain\n\n";
+
+print "helloworld";

Added: httpd/test/framework/trunk/t/modules/filter.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/filter.t?rev=1090236&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/modules/filter.t (added)
+++ httpd/test/framework/trunk/t/modules/filter.t Fri Apr  8 13:15:28 2011
@@ -0,0 +1,14 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil qw(t_cmp t_write_file);
+use File::Spec;
+
+plan tests => 1, need need_module('mod_filter');
+
+my $r = GET_BODY('/modules/cgi/xother.pl');
+
+ok t_cmp($r, "HELLOWORLD");
+



Mime
View raw message