]> granicus.if.org Git - apache/commitdiff
PR:
authorDoug MacEachern <dougm@apache.org>
Fri, 5 Apr 2002 18:08:07 +0000 (18:08 +0000)
committerDoug MacEachern <dougm@apache.org>
Fri, 5 Apr 2002 18:08:07 +0000 (18:08 +0000)
Obtained from:
Submitted by:
Reviewed by:    Ryan Bloom
remove flush bucket from ap_proxy_http_process_response.
this allows for the response content-length header to be properly
calculated/inserted.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94459 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 3719b5b00756b0c1c21a5ed799432ba25dd3cb2d..3db1d5cf9e75324266cccb224c138cf378a29bfa 100644 (file)
@@ -841,7 +841,6 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
             if ( (conf->error_override ==0) || r->status < 400 ) {
 
                 /* read the body, pass it to the output filters */
-                apr_bucket *e;
                 int finish = FALSE;
                 while (ap_get_brigade(rp->input_filters, 
                                       bb, 
@@ -875,12 +874,6 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
                         finish = TRUE;
                     }
 
-                    /* if no EOS yet, then we must flush */
-                    if (FALSE == finish) {
-                        e = apr_bucket_flush_create(c->bucket_alloc);
-                        APR_BRIGADE_INSERT_TAIL(bb, e);
-                    }
-
                     /* try send what we read */
                     if (ap_pass_brigade(r->output_filters, bb) != APR_SUCCESS) {
                         /* Ack! Phbtt! Die! User aborted! */