Commit b7221e13 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Backport fix r230718; a soon-to-be impossible edge case; we are always
  sending a body (even an 'empty' body) using stream_chunked, so we must
  always send the trailing "0" end of body marker.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody-2.0.x@230719 13f79535-47bb-0310-9956-ffa450edef68
parent 82a95397
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -544,13 +544,14 @@ static apr_status_t stream_reqbody_chunked(apr_pool_t *p,
            AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
            apr_bucket_delete(e);
        }
    }

    e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
                                   /* <trailers> */
                                   ASCII_CRLF,
                                   5, bucket_alloc);
    APR_BRIGADE_INSERT_TAIL(input_brigade, e);
    b = input_brigade;
    }
    
    status = pass_brigade(bucket_alloc, r, p_conn, origin, b, 1);
    return status;