diff options
author | default <nobody@localhost> | 2023-02-14 08:15:38 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-02-14 08:15:43 +0100 |
commit | 7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c (patch) | |
tree | ba88d90c46e7ade02952dccd2d8d1a6e4a79079c /httpd.c | |
parent | 296625c3a48412689c3fd0a8ee1cfd612e95d1a0 (diff) |
Try to show a piece of the error after connecting.
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -198,7 +198,7 @@ void httpd_connection(FILE *f) if (status == 404) body = xs_str_new("<h1>404 Not Found</h1>"); - if (status == 400) + if (status == 400 && body != NULL) body = xs_str_new("<h1>400 Bad Request</h1>"); if (status == 303) |