From: Doug MacEachern Date: Fri, 5 Apr 2002 18:08:07 +0000 (+0000) Subject: PR: X-Git-Tag: 2.0.35~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e695ae9601841f0b16b6a34ee3c686da453d6d0d;p=apache PR: 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 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 3719b5b007..3db1d5cf9e 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -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! */