From: Stefan Fritsch Date: Sat, 25 Feb 2012 22:51:33 +0000 (+0000) Subject: Pass the EOS bucket down the filter chain X-Git-Tag: 2.5.0-alpha~7437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac4effde8d0d98496d4a834034a3ea12c20056f3;p=apache Pass the EOS bucket down the filter chain PR: 52766 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1293717 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_xml2enc.c b/modules/filters/mod_xml2enc.c index 5b082fb431..f82f8bf50b 100644 --- a/modules/filters/mod_xml2enc.c +++ b/modules/filters/mod_xml2enc.c @@ -392,13 +392,14 @@ static apr_status_t xml2enc_ffunc(ap_filter_t* f, apr_bucket_brigade* bb) while (b = APR_BRIGADE_FIRST(bb), b != APR_BRIGADE_SENTINEL(bb)) { ctx->bytes = 0; if (APR_BUCKET_IS_METADATA(b)) { + APR_BUCKET_REMOVE(b); if (APR_BUCKET_IS_EOS(b)) { /* send remaining data */ + APR_BRIGADE_INSERT_TAIL(ctx->bbnext, b); return ap_fflush(f->next, ctx->bbnext); } else if (APR_BUCKET_IS_FLUSH(b)) { ap_fflush(f->next, ctx->bbnext); } - APR_BUCKET_REMOVE(b); apr_bucket_destroy(b); } else { /* data bucket */