Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 96818 invoked from network); 8 Apr 2011 13:15:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2011 13:15:52 -0000 Received: (qmail 53662 invoked by uid 500); 8 Apr 2011 13:15:52 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 53610 invoked by uid 500); 8 Apr 2011 13:15:52 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 53603 invoked by uid 99); 8 Apr 2011 13:15:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 13:15:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 13:15:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BA351238890A; Fri, 8 Apr 2011 13:15:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: cvs@httpd.apache.org From: jorton@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110408131528.BA351238890A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 + + + FilterDeclare xother CONTENT_SET + = 2.3.9> + FilterProvider xother CASEFILTER "resp('X-Foo') == 'bar'" + + + FilterProvider xother CASEFILTER resp=X-Foo bar + + FilterChain xother + + + 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"); +