summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-11-27 10:19:01 +0100
committerdefault <nobody@localhost>2023-11-27 10:19:01 +0100
commit1663adbf565f57236617ab227431dd95132d6c9c (patch)
treeaeb8272653d49342d45b0bd9c53ab667ec4cf21e /html.c
parent5a4de9cc8e80ed5a55cd2ec59dfc9b5eadf86700 (diff)
Backport from xs.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 2c40d70..1bbd153 100644
--- a/html.c
+++ b/html.c
@@ -2382,7 +2382,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
xs_html_text(content))));
}
- *body = xs_html_render_s(rss, xs_dup("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"));
+ *body = xs_html_render_s(rss, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
*b_size = strlen(*body);
*ctype = "application/rss+xml; charset=utf-8";
status = 200;