summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2025-01-06 17:02:01 +0100
committerGravatar default2025-01-06 17:02:01 +0100
commitf6e06be2781a1e56f2fbc088e14d5788eeb4c237 (patch)
tree715a7728114ad9c05c369e454c1e501305b7ff8e
parentUpdated documentation. (diff)
downloadpenes-snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.tar.gz
penes-snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.tar.xz
penes-snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.zip
In the /share page, set the charset explicitly to utf-8.
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
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,
308 s = xs_str_new(NULL); 308 s = xs_str_new(NULL);
309 309
310 status = HTTP_STATUS_OK; 310 status = HTTP_STATUS_OK;
311 *ctype = "text/html"; 311 *ctype = "text/html; charset=utf-8";
312 *body = xs_fmt(share_page, 312 *body = xs_fmt(share_page,
313 xs_dict_get(srv_config, "host"), 313 xs_dict_get(srv_config, "host"),
314 srv_baseurl, 314 srv_baseurl,