summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index b952edc..8c5e092 100644
--- a/httpd.c
+++ b/httpd.c
@@ -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)