httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/metadata mod_headers.c
Date Sun, 18 Apr 2004 19:42:34 GMT
nd          2004/04/18 12:42:34

  Modified:    .        CHANGES
               modules/metadata mod_headers.c
  Log:
  Allow ErrorHeader echo
  
  Revision  Changes    Path
  1.1461    +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1460
  retrieving revision 1.1461
  diff -u -u -r1.1460 -r1.1461
  --- CHANGES	18 Apr 2004 19:17:43 -0000	1.1460
  +++ CHANGES	18 Apr 2004 19:42:34 -0000	1.1461
  @@ -2,6 +2,8 @@
   
     [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]
   
  
  
  
  1.57      +3 -2      httpd-2.0/modules/metadata/mod_headers.c
  
  Index: mod_headers.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_headers.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -u -r1.56 -r1.57
  --- mod_headers.c	18 Apr 2004 19:17:43 -0000	1.56
  +++ mod_headers.c	18 Apr 2004 19:42:34 -0000	1.57
  @@ -394,8 +394,9 @@
   
           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) {
  
  
  

Mime
View raw message