1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-06 16:49:32 +03:00

* Do not even sent an empty brigade down the filter chain if the headers

have not been sent by the AJP server so far. Even an empty brigade
  will trigger the headers filter to create the (in this case incomplete)
  HTTP headers of the response.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1153531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ruediger Pluem
2011-08-03 15:07:29 +00:00
parent 37e5132bd6
commit c0ac7adb66

View File

@@ -509,6 +509,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
if (bb_len != -1) if (bb_len != -1)
conn->worker->s->read += bb_len; conn->worker->s->read += bb_len;
} }
if (headers_sent) {
if (ap_pass_brigade(r->output_filters, if (ap_pass_brigade(r->output_filters,
output_brigade) != APR_SUCCESS) { output_brigade) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
@@ -521,6 +522,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
apr_brigade_cleanup(output_brigade); apr_brigade_cleanup(output_brigade);
} }
} }
}
else { else {
backend_failed = 1; backend_failed = 1;
} }