From f6e06be2781a1e56f2fbc088e14d5788eeb4c237 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 6 Jan 2025 17:02:01 +0100 Subject: In the /share page, set the charset explicitly to utf-8. --- httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 804ff1b..163f98a 100644 --- 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, -- cgit v1.2.3