[Remove entries to the current 2.0 section below, when backported]
+ *) mod_proxy: Fix handling of non-200 success status codes when
+ "ProxyErrorOverride On" is configured. PR 20183.
+ [Marcus Janson <marcus.janson tre.se>, Joe Orton]
+
*) Threaded MPMs for Unix and Win32: Add WorkerStackSize directive
to override default thread stack size for threads which handle
client connections. Required for some third-party modules on
* if we are overriding the errors, we can't put the content
* of the page into the brigade
*/
- if ( (conf->error_override ==0) || r->status < 300 ) {
+ if (conf->error_override == 0 || ap_is_HTTP_SUCCESS(r->status)) {
/* read the body, pass it to the output filters */
int finish = FALSE;
}
} while (interim_response);
- if ( conf->error_override ) {
+ if (conf->error_override) {
/* the code above this checks for 'OK' which is what the hook expects */
- if ( r->status == HTTP_OK )
+ if (ap_is_HTTP_SUCCESS(r->status))
return OK;
- else {
+ else {
/* clear r->status for override error, otherwise ErrorDocument
* thinks that this is a recursive error, and doesn't find the
* custom error page