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/server core.c
Date Thu, 24 Jul 2003 14:36:56 GMT
nd          2003/07/24 07:36:55

  Modified:    server   core.c
  Log:
  don't reverse the filter order in AddOutputFilterByType
  
  Revision  Changes    Path
  1.240     +11 -3     httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.239
  retrieving revision 1.240
  diff -u -r1.239 -r1.240
  --- core.c	20 Jun 2003 12:53:52 -0000	1.239
  +++ core.c	24 Jul 2003 14:36:54 -0000	1.240
  @@ -2764,6 +2764,12 @@
       else {
           old = (ap_filter_rec_t*) apr_hash_get(conf->ct_output_filters, arg2,
                                                 APR_HASH_KEY_STRING);
  +        /* find last entry */
  +        if (old) {
  +            while (old->next) {
  +                old = old->next;
  +            }
  +        }
       }
   
       while (*arg &&
  @@ -2774,7 +2780,11 @@
   
           /* We found something, so let's append it.  */
           if (old) {
  -            new->next = old;
  +            old->next = new;
  +        }
  +        else {
  +            apr_hash_set(conf->ct_output_filters, arg2,
  +                         APR_HASH_KEY_STRING, new);
           }
           old = new;
       }
  @@ -2783,8 +2793,6 @@
           return "invalid filter name";
       }
       
  -    apr_hash_set(conf->ct_output_filters, arg2, APR_HASH_KEY_STRING, new);
  -
       return NULL;
   }
   /* 
  
  
  

Mime
View raw message