- restore the old return code with configured 404 handlers

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1852 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Marcus Rückert 2007-05-09 15:05:17 +00:00
parent 1f8bceba8f
commit 450c7de76e
1 changed files with 1 additions and 0 deletions

View File

@ -1432,6 +1432,7 @@ int connection_state_machine(server *srv, connection *con) {
} else if (con->in_error_handler) {
/* error-handler is back and has generated content */
/* if Status: was set, take it otherwise use 200 */
con->http_status = con->error_handler_saved_status;
}
if (con->http_status == 0) con->http_status = 200;