summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-10-08 00:06:37 +0200
committerdefault <nobody@localhost>2023-10-08 00:06:37 +0200
commit8524ace23f1ebec07fd4d51171e121b1f1e75007 (patch)
tree03f98d1ce6d29b85c31dc85e104dbfda2ff9aab8 /httpd.c
parent8676d872996c7486ada76c344deee0d3fdc3f188 (diff)
Hide posts from the public web for accounts with 'private' == true.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index e2cfbb0..20d87bd 100644
--- a/httpd.c
+++ b/httpd.c
@@ -284,6 +284,9 @@ void httpd_connection(FILE *f)
status = 404;
}
+ if (status == 403)
+ body = xs_str_new("<h1>403 Forbidden</h1>");
+
if (status == 404)
body = xs_str_new("<h1>404 Not Found</h1>");