]> granicus.if.org Git - apache/commitdiff
Allow ErrorHeader echo
authorAndré Malo <nd@apache.org>
Sun, 18 Apr 2004 19:42:34 +0000 (19:42 +0000)
committerAndré Malo <nd@apache.org>
Sun, 18 Apr 2004 19:42:34 +0000 (19:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103444 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/metadata/mod_headers.c

diff --git a/CHANGES b/CHANGES
index 085dc5a83cda8f38aa857a4660166630e4b91069..5147ae52208d8e3b7d553147c2af1fb3857b7b4a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) mod_headers: Allow 'echo' also for ErrorHeaders.  [André Malo]
+
   *) mod_headers no longer crashes if an empty header value should
      be added.  [André Malo]
 
index ec2fa2873fb4071a83966cbcfbf7cc8cb236359b..bcdb436ead94df7499c02c82aa2471172e158c3f 100644 (file)
@@ -394,8 +394,9 @@ static APR_INLINE const char *header_inout_cmd(cmd_parms *cmd,
 
         if (value)
             return "Header echo takes two arguments";
-        else if (cmd->info != &hdr_out)
-            return "Header echo only valid on Header directive";
+        else if (cmd->info != &hdr_out && cmd->info != &hdr_err)
+            return "Header echo only valid on Header and ErrorHeader "
+                   "directives";
         else {
             regex = ap_pregcomp(cmd->pool, hdr, REG_EXTENDED | REG_NOSUB);
             if (regex == NULL) {