-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_proxy: Don't put the worker in error state for 500 or 503 errors
+ returned by the backend unless failonstatus is configured to. PR 56925.
+ [Yann Ylavic]
+
*) http: Don't remove the Content-Length of zero from a HEAD response if
it comes from an origin server, module or script. [Yann Ylavic]
AP_PROXY_RUN(r, worker, conf, url, attempts);
access_status = proxy_run_scheme_handler(r, worker, conf,
url, NULL, 0);
- if (access_status == OK)
+ if (access_status == OK
+ || apr_table_get(r->notes, "proxy-error-override"))
break;
else if (access_status == HTTP_INTERNAL_SERVER_ERROR) {
/* Unrecoverable server error.
ap_discard_request_body(backend->r);
}
proxy_run_detach_backend(r, backend);
+ apr_table_setn(r->notes, "proxy-error-override", "1");
return proxy_status;
}