diff options
| author | 2025-10-24 05:02:28 +0200 | |
|---|---|---|
| committer | 2025-10-24 05:02:28 +0200 | |
| commit | 1a42fdc8bd4d5dc045a87108e73dcda4f633266b (patch) | |
| tree | 0fad3d6cc5f6eff50edb610ef6d44acb6fdc598b /httpd.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | penes-snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.tar.gz penes-snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.tar.xz penes-snac2-1a42fdc8bd4d5dc045a87108e73dcda4f633266b.zip | |
Keep track of deleted users and return 410 Gone for them.
Diffstat (limited to 'httpd.c')
| -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 | ||