--- http_protocol.c.2.0.59 2007-06-27 14:26:54.000000000 +0200 +++ http_protocol.c.2.0.59 2007-06-27 14:27:32.000000000 +0200 @@ -1002,6 +1002,12 @@ APR_BRIGADE_INSERT_TAIL(b, e); } + if (ctx->state == BODY_CHUNK && ctx->remaining == 0 + && f->r->proxyreq == PROXYREQ_RESPONSE) { + e = apr_bucket_flush_create(f->c->bucket_alloc); + APR_BRIGADE_INSERT_TAIL(b, e); + } + /* We have a limit in effect. */ if (ctx->limit) { /* FIXME: Note that we might get slightly confused on chunked inputs