server : do not overwrite 404 if status is 500 from exception_handler
This commit is contained in:
parent
3f9fa77fe0
commit
1f373e349e
1 changed files with 1 additions and 1 deletions
|
@ -1407,7 +1407,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
if (res.status == 400) {
|
||||
res.set_content("Invalid request", "text/plain");
|
||||
} else {
|
||||
} else if (res.status != 500) {
|
||||
res.set_content("File Not Found", "text/plain");
|
||||
res.status = 404;
|
||||
} });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue