diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2005-08-08 00:59:40 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2005-08-08 00:59:40 +0000 |
commit | 9bac580ca94d676f96717e1b58c39bf7166282ee (patch) | |
tree | 8fd725d77e6b1db6c1107eacdd5b1ee84c507500 | |
parent | e9715ebd1a518bfc33213b2dea4161bb0079ac9a (diff) | |
download | httpd-9bac580ca94d676f96717e1b58c39bf7166282ee.tar.gz |
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
-rw-r--r-- | modules/proxy/proxy_http.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 780606d1ee..6c2a91f629 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 - /* <trailers> */ - ASCII_CRLF, - 5, bucket_alloc); - APR_BRIGADE_INSERT_TAIL(input_brigade, e); - b = input_brigade; } + + 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; |