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
svn/heads/lighttpd-1.3.x
Jan Kneschke 18 years ago
parent 5da36ebd0f
commit 81edb90eac

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

Loading…
Cancel
Save