summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2023-02-14 08:15:38 +0100
committerGravatar default2023-02-14 08:15:43 +0100
commit7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c (patch)
treeba88d90c46e7ade02952dccd2d8d1a6e4a79079c /httpd.c
parentUpdated documentation. (diff)
downloadsnac2-7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c.tar.gz
snac2-7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c.tar.xz
snac2-7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c.zip
Try to show a piece of the error after connecting.
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)
198 if (status == 404) 198 if (status == 404)
199 body = xs_str_new("<h1>404 Not Found</h1>"); 199 body = xs_str_new("<h1>404 Not Found</h1>");
200 200
201 if (status == 400) 201 if (status == 400 && body != NULL)
202 body = xs_str_new("<h1>400 Bad Request</h1>"); 202 body = xs_str_new("<h1>400 Bad Request</h1>");
203 203
204 if (status == 303) 204 if (status == 303)