diff options
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | m2.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -14,7 +14,7 @@ source=("m2.c" "hitokoto.socket" "hitokoto.service" "conf") -sha256sums=('3e0123a876630ebf95a72fed6b8279ce406d29ce6e515b65373bcb12f27b719f' +sha256sums=('b4f6f365a75e32880fa2e5feecd2f2f16762f5da3258d72ed4054f7f5c588826' 'e71a00dfb9a2744f482de80e33c02341d6cae19a1f54e53a5346d972bfeff054' 'b8bc142afd751158b0350720eedbd123d44053ecc2a398db71d87142d6a076db' '7df72ca1eef5545b4c88325605c0724b14574d66d4d73b65125f0fac75c4def0' @@ -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, |