- 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
svn/tags/lighttpd-1.4.16
Marcus Rückert 16 years ago
parent 1f8bceba8f
commit 450c7de76e

@ -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;

Loading…
Cancel
Save