You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2018/08/25 16:17:20 UTC

svn commit: r1839079 - /httpd/test/framework/trunk/t/modules/reflector.t

Author: jailletc36
Date: Sat Aug 25 16:17:20 2018
New Revision: 1839079

URL: http://svn.apache.org/viewvc?rev=1839079&view=rev
Log:
Small update

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

Modified: httpd/test/framework/trunk/t/modules/reflector.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/reflector.t?rev=1839079&r1=1839078&r2=1839079&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/reflector.t (original)
+++ httpd/test/framework/trunk/t/modules/reflector.t Sat Aug 25 16:17:20 2018
@@ -17,7 +17,7 @@ push @headers, "header2delete" => "1";
 push @headers, "Content-Encoding" => "gzip";
 push @headers, "Accept-Encoding" => "gzip";
 
-plan tests => scalar @testcases * 6, need 'reflector', 'mod_deflate';
+plan tests => scalar @testcases * 7, need 'mod_reflector', 'mod_deflate';
 
 foreach my $t (@testcases) {
     my $r = POST($t->[0], @headers, content => $t->[1]);
@@ -33,11 +33,12 @@ foreach my $t (@testcases) {
     } else {
         # With DEFLATE, input should have been updated and 'Content-Encoding' added
         ok not t_is_equal($r->content, $t->[1]);
-        ok not t_cmp($r->header("Content-Encoding"), undef, "'Content-Encoding' has been added by the DEFLATE filter");
+        ok t_cmp($r->header("Content-Encoding"), "gzip", "'Content-Encoding' has been added by the DEFLATE filter");
     }
 
     # Checking for headers
     ok t_cmp($r->header("header2reflect"), "1", "'header2reflect' is present");
+    ok t_cmp($r->header("header2update"), undef, "'header2update' is absent");
     ok t_cmp($r->header("header2updateUpdated"), "1", "'header2updateUpdated' is present");
     ok t_cmp($r->header("header2delete"), undef, "'header2delete' is absent");
 }