commit f6e06be2781a1e56f2fbc088e14d5788eeb4c237
parent 4a1270d1cb66416b7f718fc17f07b71ab24d6cf8
Author: default <nobody@localhost>
Date: Mon, 6 Jan 2025 17:02:01 +0100
In the /share page, set the charset explicitly to utf-8.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpd.c b/httpd.c
@@ -308,7 +308,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
s = xs_str_new(NULL);
status = HTTP_STATUS_OK;
- *ctype = "text/html";
+ *ctype = "text/html; charset=utf-8";
*body = xs_fmt(share_page,
xs_dict_get(srv_config, "host"),
srv_baseurl,