]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
clean up the data that we just wrote to the spool file;
authorJeff Trawick <trawick@apache.org>
Wed, 5 Jan 2005 14:11:49 +0000 (14:11 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 5 Jan 2005 14:11:49 +0000 (14:11 +0000)
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

modules/proxy/proxy_http.c

index 100cc0b979fbc069afa2b8fcab7506903ceeb4c9..e11336dae6deb984982353eca6e828d0580c3e27 100644 (file)
@@ -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);