From: William A. Rowe Jr Date: Mon, 8 Aug 2005 00:59:40 +0000 (+0000) Subject: Backport fix r230718; a soon-to-be impossible edge case; we are always X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bac580ca94d676f96717e1b58c39bf7166282ee;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 780606d1ee7..6c2a91f6291 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -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 - /* */ - ASCII_CRLF, - 5, bucket_alloc); - APR_BRIGADE_INSERT_TAIL(input_brigade, e); - b = input_brigade; } + + e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF + /* */ + 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;