mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-28 23:53:36 +00:00
Log if the RSS is served.
This commit is contained in:
parent
f396d41de6
commit
71b925d420
1 changed files with 3 additions and 1 deletions
4
html.c
4
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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue