From: Jeff Trawick Date: Wed, 5 Jan 2005 14:11:49 +0000 (+0000) Subject: clean up the data that we just wrote to the spool file; X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168ee6cbfb7ea414e1d90baf36c3bc7ecc70902f;p=thirdparty%2Fapache%2Fhttpd.git clean up the data that we just wrote to the spool file; otherwise, very very nasty stuff happens when input brigade with same contents is passed down to filters to grab more body data git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody@124204 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 100cc0b979f..e11336dae6d 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -564,6 +564,7 @@ static apr_status_t spool_reqbody_cl(apr_pool_t *p, AP_DEBUG_ASSERT(bytes_read == bytes_written); fsize += bytes_written; } + apr_brigade_cleanup(input_brigade); } else { APR_BRIGADE_CONCAT(body_brigade, input_brigade);