From df0aa883d50a240c5d3c7c03d605da63c6b7ad63 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Sat, 13 Jan 2007 01:02:46 +0000 Subject: [PATCH] Re-add "proxy-sendextracrlf" first introduced in r157478 and silently removed in r219224. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@495808 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_http.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index a7538726f7..233903bef2 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -309,6 +309,11 @@ static apr_status_t stream_reqbody_chunked(apr_pool_t *p, 5, bucket_alloc); APR_BRIGADE_INSERT_TAIL(bb, e); + if (apr_table_get(r->subprocess_env, "proxy-sendextracrlf")) { + e = apr_bucket_immortal_create(ASCII_CRLF, 2, bucket_alloc); + APR_BRIGADE_INSERT_TAIL(bb, e); + } + /* Now we have headers-only, or the chunk EOS mark; flush it */ status = pass_brigade(bucket_alloc, r, p_conn, origin, bb, 1); return status; @@ -352,6 +357,11 @@ static apr_status_t stream_reqbody_cl(apr_pool_t *p, /* We can't pass this EOS to the output_filters. */ e = APR_BRIGADE_LAST(input_brigade); apr_bucket_delete(e); + + if (apr_table_get(r->subprocess_env, "proxy-sendextracrlf")) { + e = apr_bucket_immortal_create(ASCII_CRLF, 2, bucket_alloc); + APR_BRIGADE_INSERT_TAIL(input_brigade, e); + } } /* C-L < bytes streamed?!? @@ -547,6 +557,10 @@ static apr_status_t spool_reqbody_cl(apr_pool_t *p, if (tmpfile) { apr_brigade_insert_file(header_brigade, tmpfile, 0, fsize, p); } + if (apr_table_get(r->subprocess_env, "proxy-sendextracrlf")) { + e = apr_bucket_immortal_create(ASCII_CRLF, 2, bucket_alloc); + APR_BRIGADE_INSERT_TAIL(header_brigade, e); + } /* This is all a single brigade, pass with flush flagged */ status = pass_brigade(bucket_alloc, r, p_conn, origin, header_brigade, 1); return status; -- 2.40.0