diff options
| author | 2025-11-01 00:48:33 +0100 | |
|---|---|---|
| committer | 2025-11-01 00:48:33 +0100 | |
| commit | 8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709 (patch) | |
| tree | 8f86ca0f28ef5c6b242a411bb6e9d38de25cf191 /httpd.c | |
| parent | rendering visibility conditionally, with lesser reach if needed (diff) | |
| parent | Merge pull request 'po/de_DE.po aktualisiert' (#494) from zen/snac2:master in... (diff) | |
| download | snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.tar.gz snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.tar.xz snac2-8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709.zip | |
Merge remote-tracking branch 'orig/master' into feature/lesser-visibility
Diffstat (limited to '')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -598,6 +598,9 @@ void httpd_connection(FILE *f) | |||
| 598 | if (status == HTTP_STATUS_NOT_FOUND) | 598 | if (status == HTTP_STATUS_NOT_FOUND) |
| 599 | body = xs_str_new("<h1>404 Not Found (" USER_AGENT ")</h1>"); | 599 | body = xs_str_new("<h1>404 Not Found (" USER_AGENT ")</h1>"); |
| 600 | 600 | ||
| 601 | if (status == HTTP_STATUS_GONE) | ||
| 602 | body = xs_str_new("<h1>410 Gone (" USER_AGENT ")</h1>"); | ||
| 603 | |||
| 601 | if (status == HTTP_STATUS_BAD_REQUEST && body != NULL) | 604 | if (status == HTTP_STATUS_BAD_REQUEST && body != NULL) |
| 602 | body = xs_str_new("<h1>400 Bad Request (" USER_AGENT ")</h1>"); | 605 | body = xs_str_new("<h1>400 Bad Request (" USER_AGENT ")</h1>"); |
| 603 | 606 | ||