diff options
| author | default <nobody@localhost> | 2025-01-20 08:39:06 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-20 08:39:06 +0100 |
| commit | 202d99c81529694ac3c6b524af9627404a26dd2f (patch) | |
| tree | c46b1efb7284869390b93469532f962890a71cb7 /httpd.c | |
| parent | f7ae2521ba76dfa403b182221001c38bf383d0e3 (diff) | |
Added the USER_AGENT to HTTP errors.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -501,13 +501,13 @@ void httpd_connection(FILE *f) } if (status == HTTP_STATUS_FORBIDDEN) - body = xs_str_new("<h1>403 Forbidden</h1>"); + body = xs_str_new("<h1>403 Forbidden (" USER_AGENT ")</h1>"); if (status == HTTP_STATUS_NOT_FOUND) - body = xs_str_new("<h1>404 Not Found</h1>"); + body = xs_str_new("<h1>404 Not Found (" USER_AGENT ")</h1>"); if (status == HTTP_STATUS_BAD_REQUEST && body != NULL) - body = xs_str_new("<h1>400 Bad Request</h1>"); + body = xs_str_new("<h1>400 Bad Request (" USER_AGENT ")</h1>"); if (status == HTTP_STATUS_SEE_OTHER) headers = xs_dict_append(headers, "location", body); |