| Date: Sun, 4 Oct 2020 15:45:38 +0200
http_status: on unknown statuscode print statusheader before exiting
(This condition never happens though)
Signed-off-by: Anders Damsgaard
Diffstat:
M vote.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- |
| t@@ -39,8 +39,8 @@ http_status(int statuscode)
printf("Status: 500 Internal Server Error\r\n\r\n");
break;
default:
- err(1, "unknown status code %d\n", statuscode);
printf("Status: 500 Internal Server Error\r\n\r\n");
+ err(1, "unknown status code %d\n", statuscode);
}
}
|