summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-18 11:48:39 +0100
committerdefault <nobody@localhost>2022-11-18 11:48:39 +0100
commit71b925d420f7009082a47c759f1b280e93e58e8c (patch)
treee24154032b788b1f35e7b8ccca1dc115ba628b56
parentf396d41de64909c2690b287e0da8de74cf0a50d1 (diff)
Log if the RSS is served.
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index c385df2..c5e9643 100644
--- a/html.c
+++ b/html.c
@@ -969,7 +969,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
uid = xs_dup(v);
- /* rss? */
+ /* rss extension? */
if (xs_endswith(uid, ".rss")) {
uid = xs_crop(uid, 0, -4);
p_path = ".rss";
@@ -1155,6 +1155,8 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
*b_size = strlen(rss);
*ctype = "application/rss+xml; charset=utf-8";
status = 200;
+
+ snac_debug(&snac, 1, xs_fmt("serving RSS"));
}
else
status = 404;