httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_protocol.c
Date Thu, 02 Nov 2000 15:43:17 GMT
trawick     00/11/02 07:43:08

  Modified:    src/main http_protocol.c
  Log:
  ap_http_header_filter() can't remove itself until after we the
  CHUNK filter has been added.  Otherwise, f->next won't be the
  CHUNK filter and thus the first brigade won't be chunked
  properly.
  Reported by:	wrowe
  
  Revision  Changes    Path
  1.220     +5 -1      apache-2.0/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
  retrieving revision 1.219
  retrieving revision 1.220
  diff -u -r1.219 -r1.220
  --- http_protocol.c	2000/11/01 18:42:55	1.219
  +++ http_protocol.c	2000/11/02 15:42:56	1.220
  @@ -2436,7 +2436,6 @@
       b2 = ap_brigade_create(r->pool);
       e = ap_bucket_create_pool(buff_start, strlen(buff_start), r->pool);
       AP_BRIGADE_INSERT_HEAD(b2, e);
  -    ap_remove_output_filter(f);
       ap_pass_brigade(f->next, b2);
   
       if (r->chunked) {
  @@ -2447,6 +2446,11 @@
           ap_add_output_filter("CHUNK", NULL, r, r->connection);
       }
   
  +    /* Don't remove this filter until after we have added the CHUNK filter.
  +     * Otherwise, f->next won't be the CHUNK filter and thus the first
  +     * brigade won't be chunked properly.
  +     */
  +    ap_remove_output_filter(f);
       return ap_pass_brigade(f->next, b);
   }
   
  
  
  

Mime
View raw message