commit 71b925d

default  ·  2022-11-18 10:48:39 +0000 UTC
parent f396d41
Log if the RSS is served.
1 files changed,  +3, -1
M html.c
M html.c
+3, -1
 1@@ -969,7 +969,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
 2 
 3     uid = xs_dup(v);
 4 
 5-    /* rss? */
 6+    /* rss extension? */
 7     if (xs_endswith(uid, ".rss")) {
 8         uid = xs_crop(uid, 0, -4);
 9         p_path = ".rss";
10@@ -1155,6 +1155,8 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
11         *b_size = strlen(rss);
12         *ctype  = "application/rss+xml; charset=utf-8";
13         status  = 200;
14+
15+        snac_debug(&snac, 1, xs_fmt("serving RSS"));
16     }
17     else
18         status = 404;