mod_proxy_http: follow up to r1877696: reindent.
No functional changes.
@@ -1813,6 +1813,9 @@ int ap_proxy_http_process_response(proxy_http_req_t *req)
/* send body - but only if a body is expected */
if (!r->header_only && !AP_STATUS_IS_HEADER_ONLY(proxy_status)) {
+ apr_read_type_e mode;
+ int finish;
+
/* We need to copy the output headers and treat them as input
* headers as well. BUT, we need to do this before we remove
* TE, so that they are preserved accordingly for
@@ -1832,14 +1835,7 @@ int ap_proxy_http_process_response(proxy_http_req_t *req)
ap_log_rerror(APLOG_MARK, APLOG_TRACE3, 0, r, "start body send");
- /*
- * if we are overriding the errors, we can't put the content
- * of the page into the brigade
- */
- {
/* read the body, pass it to the output filters */
- apr_read_type_e mode = APR_NONBLOCK_READ;
- int finish = FALSE;
/* Handle the case where the error document is itself reverse
* proxied and was successful. We must maintain any previous
@@ -1851,6 +1847,8 @@ int ap_proxy_http_process_response(proxy_http_req_t *req)
r->status_line = original_status_line;
}
+ mode = APR_NONBLOCK_READ;
+ finish = FALSE;
do {
apr_off_t readbytes;
apr_status_t rv;
@@ -1993,7 +1991,7 @@ int ap_proxy_http_process_response(proxy_http_req_t *req)
apr_brigade_cleanup(bb);
} while (!finish);
- }
+
ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r, "end body send");
}
else {
