diff options
| -rw-r--r-- | httpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -501,13 +501,13 @@ void httpd_connection(FILE *f) | |||
| 501 | } | 501 | } |
| 502 | 502 | ||
| 503 | if (status == HTTP_STATUS_FORBIDDEN) | 503 | if (status == HTTP_STATUS_FORBIDDEN) |
| 504 | body = xs_str_new("<h1>403 Forbidden</h1>"); | 504 | body = xs_str_new("<h1>403 Forbidden (" USER_AGENT ")</h1>"); |
| 505 | 505 | ||
| 506 | if (status == HTTP_STATUS_NOT_FOUND) | 506 | if (status == HTTP_STATUS_NOT_FOUND) |
| 507 | body = xs_str_new("<h1>404 Not Found</h1>"); | 507 | body = xs_str_new("<h1>404 Not Found (" USER_AGENT ")</h1>"); |
| 508 | 508 | ||
| 509 | if (status == HTTP_STATUS_BAD_REQUEST && body != NULL) | 509 | if (status == HTTP_STATUS_BAD_REQUEST && body != NULL) |
| 510 | body = xs_str_new("<h1>400 Bad Request</h1>"); | 510 | body = xs_str_new("<h1>400 Bad Request (" USER_AGENT ")</h1>"); |
| 511 | 511 | ||
| 512 | if (status == HTTP_STATUS_SEE_OTHER) | 512 | if (status == HTTP_STATUS_SEE_OTHER) |
| 513 | headers = xs_dict_append(headers, "location", body); | 513 | headers = xs_dict_append(headers, "location", body); |