the error-handler defaults to 200 of error was handled successfully, fixes #168

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@489 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2005-07-31 10:43:47 +00:00
parent 5da36ebd0f
commit 81edb90eac
1 changed files with 1 additions and 4 deletions

View File

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