Commit 02253e02 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

if last brigade of data received from client had data

and EOS, then input_brigade would be empty here


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody@124377 13f79535-47bb-0310-9956-ffa450edef68
parent 776b94a6
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -392,10 +392,12 @@ static apr_status_t stream_reqbody_chunked(apr_pool_t *p,
        b = header_brigade;
    }
    else {
        if (!APR_BRIGADE_EMPTY(input_brigade)) {
            /* input brigade still has an EOS which we can't pass to the output_filters. */
            e = APR_BRIGADE_LAST(input_brigade);
            AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
            apr_bucket_delete(e);
        }
        e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
                                       /* <trailers> */
                                       ASCII_CRLF,