Log if the RSS is served.

This commit is contained in:
default 2022-11-18 11:48:39 +01:00
parent f396d41de6
commit 71b925d420

4
html.c
View File

@ -969,7 +969,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
uid = xs_dup(v); uid = xs_dup(v);
/* rss? */ /* rss extension? */
if (xs_endswith(uid, ".rss")) { if (xs_endswith(uid, ".rss")) {
uid = xs_crop(uid, 0, -4); uid = xs_crop(uid, 0, -4);
p_path = ".rss"; 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); *b_size = strlen(rss);
*ctype = "application/rss+xml; charset=utf-8"; *ctype = "application/rss+xml; charset=utf-8";
status = 200; status = 200;
snac_debug(&snac, 1, xs_fmt("serving RSS"));
} }
else else
status = 404; status = 404;