snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 71b925d420f7009082a47c759f1b280e93e58e8c
parent f396d41de64909c2690b287e0da8de74cf0a50d1
Author: default <nobody@localhost>
Date:   Fri, 18 Nov 2022 11:48:39 +0100

Log if the RSS is served.

Diffstat:
Mhtml.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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;