diff options
| author | 2025-01-06 17:02:01 +0100 | |
|---|---|---|
| committer | 2025-01-06 17:02:01 +0100 | |
| commit | f6e06be2781a1e56f2fbc088e14d5788eeb4c237 (patch) | |
| tree | 715a7728114ad9c05c369e454c1e501305b7ff8e /httpd.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.tar.gz snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.tar.xz snac2-f6e06be2781a1e56f2fbc088e14d5788eeb4c237.zip | |
In the /share page, set the charset explicitly to utf-8.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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, |