Handle the proxy-error-override note also in mod_proxy_ajp.
The note is not needed in mod_proxy_fcgi (which also handles
ProxyErrorOverride) since it calls ap_die() by itself, and always
returns OK to proxy_handler().
Add a comment about the note where used.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1682907 13f79535-47bb-0310-9956-
ffa450edef68
*/
rv = r->status;
r->status = HTTP_OK;
+ /*
+ * prevent proxy_handler() from treating this as an
+ * internal error.
+ */
+ apr_table_setn(r->notes, "proxy-error-override", "1");
}
else {
rv = OK;
ap_discard_request_body(backend->r);
}
proxy_run_detach_backend(r, backend);
+ /*
+ * prevent proxy_handler() from treating this as an
+ * internal error.
+ */
apr_table_setn(r->notes, "proxy-error-override", "1");
return proxy_status;
}