diff options
Diffstat (limited to 'm2.c')
-rw-r--r-- | m2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,7 +66,7 @@ int main(int argc, char **argv) { char *text_zh = (char *) sqlite3_column_text(stmt, 3); if (!strncmp(url, "/hitokoto.css", 13)) { FCGX_FPrintF(out, - "Content-Type: text/css\r\n" + "Content-Type: text/css; charset=utf-8\r\n" "\r\n" "#hitokoto::before { content: \"%s\" }\n" "#hitokoto::after { content: \"%s\" }\n" @@ -76,7 +76,7 @@ int main(int argc, char **argv) { text_zh ? text_zh : "", title_zh ? title_zh : ""); } else { FCGX_FPrintF(out, - "Content-type: application/json\r\n" + "Content-type: application/json; charset=utf-8\r\n" "\r\n" "{\"title\":\"%s\",\"title_zh\":\"%s\",\"text\":\"%s\",\"text_zh\":\"%s\"}\n", title, |