filtered out from the outgoing brigade by ap_http_outerror_filter() applying
the EOC semantic.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1774322 13f79535-47bb-0310-9956-
ffa450edef68
* EOS bucket.
*/
if (ctx->seen_eoc) {
- for (e = APR_BRIGADE_FIRST(b);
- e != APR_BRIGADE_SENTINEL(b);
- e = APR_BUCKET_NEXT(e))
- {
- if (!APR_BUCKET_IS_METADATA(e)) {
- APR_BUCKET_REMOVE(e);
+ e = APR_BRIGADE_FIRST(b);
+ while (e != APR_BRIGADE_SENTINEL(b)) {
+ apr_bucket *c = e;
+ e = APR_BUCKET_NEXT(e);
+ if (!APR_BUCKET_IS_METADATA(c)) {
+ apr_bucket_delete(c);
}
}
}