From: Stefan Fritsch Date: Sat, 25 Feb 2012 22:51:33 +0000 (+0000) Subject: Pass the EOS bucket down the filter chain X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b03a3a7e5793ca596e8b9ac94e16c2ba7bc6b32;p=thirdparty%2Fapache%2Fhttpd.git 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 5b082fb4311..f82f8bf50b4 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 */