From 202d99c81529694ac3c6b524af9627404a26dd2f Mon Sep 17 00:00:00 2001 From: default Date: Mon, 20 Jan 2025 08:39:06 +0100 Subject: Added the USER_AGENT to HTTP errors. --- httpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 7222893..eb72c6f 100644 --- a/httpd.c +++ b/httpd.c @@ -501,13 +501,13 @@ void httpd_connection(FILE *f) } if (status == HTTP_STATUS_FORBIDDEN) - body = xs_str_new("

403 Forbidden

"); + body = xs_str_new("

403 Forbidden (" USER_AGENT ")

"); if (status == HTTP_STATUS_NOT_FOUND) - body = xs_str_new("

404 Not Found

"); + body = xs_str_new("

404 Not Found (" USER_AGENT ")

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

400 Bad Request

"); + body = xs_str_new("

400 Bad Request (" USER_AGENT ")

"); if (status == HTTP_STATUS_SEE_OTHER) headers = xs_dict_append(headers, "location", body); -- cgit v1.2.3