From 7e27ccfde8ec9d7d9edb9febdd54796ff3eae97c Mon Sep 17 00:00:00 2001 From: default Date: Tue, 14 Feb 2023 08:15:38 +0100 Subject: Try to show a piece of the error after connecting. --- httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.c') 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("

404 Not Found

"); - if (status == 400) + if (status == 400 && body != NULL) body = xs_str_new("

400 Bad Request

"); if (status == 303) -- cgit v1.2.3