proxy.
Problem was ErrorHandler thought it was in some kind of recursion and
couldn't find the custom error document
Obtained from: Jin Hong <jinh@cnet.com>
Submitted by:
Reviewed by: Ian Holsman
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91757
13f79535-47bb-0310-9956-
ffa450edef68
/* the code above this checks for 'OK' which is what the hook expects */
if ( r->status == HTTP_OK )
return OK;
- else
- return r->status;
+ else {
+ /* clear r->status for override error, otherwise ErrorDocument
+ * thinks that this is a recursive error, and doesn't find the
+ * custom error page
+ */
+ int status = r->status;
+ r->status = HTTP_OK;
+ return status;
+ }
} else
return OK;
}