httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r947641 - in /httpd/test/framework/trunk/t: apache/pr17629.t conf/extra.conf.in htdocs/foobar.html htdocs/modules/cgi/ htdocs/modules/cgi/redirect.pl.PL htdocs/modules/deflate/ssi/ htdocs/modules/deflate/ssi/ssi.shtml
Date Mon, 24 May 2010 13:40:03 GMT
Author: jorton
Date: Mon May 24 13:40:02 2010
New Revision: 947641

URL: http://svn.apache.org/viewvc?rev=947641&view=rev
Log:
- add test case for PR 17629

Added:
    httpd/test/framework/trunk/t/apache/pr17629.t
    httpd/test/framework/trunk/t/htdocs/foobar.html
    httpd/test/framework/trunk/t/htdocs/modules/cgi/redirect.pl.PL
    httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/
    httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/ssi.shtml
Modified:
    httpd/test/framework/trunk/t/conf/extra.conf.in
    httpd/test/framework/trunk/t/htdocs/modules/cgi/   (props changed)

Added: httpd/test/framework/trunk/t/apache/pr17629.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/pr17629.t?rev=947641&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/apache/pr17629.t (added)
+++ httpd/test/framework/trunk/t/apache/pr17629.t Mon May 24 13:40:02 2010
@@ -0,0 +1,32 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestUtil;
+use Apache::TestRequest;
+
+plan tests => 2, need [qw(cgi include deflate)];
+my $inflator = "/modules/deflate/echo_post";
+
+my @deflate_headers;
+push @deflate_headers, "Accept-Encoding" => "gzip";
+
+my @inflate_headers;
+push @inflate_headers, "Content-Encoding" => "gzip";
+
+my $uri = "/modules/deflate/ssi/ssi.shtml";
+
+my $content = GET_BODY($uri);
+
+my $expected = "begin-foobar-end\n";
+
+ok t_cmp($content, $expected);
+
+$content = GET_BODY($uri, @deflate_headers);
+
+my $deflated = POST_BODY($inflator, @inflate_headers,
+                         content => $content);
+
+ok t_cmp($deflated, $expected);
+
+

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=947641&r1=947640&r2=947641&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/extra.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/extra.conf.in Mon May 24 13:40:02 2010
@@ -461,6 +461,13 @@ LimitRequestFields    32
             SetOutputFilter DEFLATE
         </Directory> 
 
+        <Directory @SERVERROOT@/htdocs/modules/deflate/ssi>
+            Options +Includes
+            DirectoryIndex shtml
+            AddOutputFilter INCLUDES shtml
+            SetOutputFilter DEFLATE
+        </Directory> 
+
         <Location /modules/cgi/not-modified.pl>
             SetOutputFilter DEFLATE
         </Location> 

Added: httpd/test/framework/trunk/t/htdocs/foobar.html
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/foobar.html?rev=947641&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/foobar.html (added)
+++ httpd/test/framework/trunk/t/htdocs/foobar.html Mon May 24 13:40:02 2010
@@ -0,0 +1 @@
+foobar
\ No newline at end of file

Propchange: httpd/test/framework/trunk/t/htdocs/modules/cgi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon May 24 13:40:02 2010
@@ -19,3 +19,4 @@ action.pl
 nph-dripfeed.pl
 nph-interim1.pl
 nph-interim2.pl
+redirect.pl

Added: httpd/test/framework/trunk/t/htdocs/modules/cgi/redirect.pl.PL
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/cgi/redirect.pl.PL?rev=947641&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/cgi/redirect.pl.PL (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/cgi/redirect.pl.PL Mon May 24 13:40:02 2010
@@ -0,0 +1,5 @@
+print <<EOT
+Location: /foobar.html
+
+EOT
+;

Added: httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/ssi.shtml
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/ssi.shtml?rev=947641&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/ssi.shtml (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/deflate/ssi/ssi.shtml Mon May 24 13:40:02
2010
@@ -0,0 +1 @@
+begin-<!--#include virtual="/modules/cgi/redirect.pl"-->-end



Mime
View raw message