commit f6e06be

default  ·  2025-01-06 16:02:01 +0000 UTC
parent 4a1270d
In the /share page, set the charset explicitly to utf-8.
1 files changed,  +1, -1
+1, -1
1@@ -308,7 +308,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
2             s = xs_str_new(NULL);
3 
4         status = HTTP_STATUS_OK;
5-        *ctype = "text/html";
6+        *ctype = "text/html; charset=utf-8";
7         *body  = xs_fmt(share_page,
8             xs_dict_get(srv_config, "host"),
9             srv_baseurl,