content charset

This commit is contained in:
Jan-Piet Mens 2015-10-25 08:33:59 +01:00
parent 9a3168d20e
commit 13c51f3d72

2
http.c
View File

@ -247,7 +247,7 @@ static int json_response(struct mg_connection *conn, JsonNode *json)
{
char *js;
mg_send_header(conn, "Content-Type", "application/json");
mg_send_header(conn, "Content-Type", "application/json; charset=utf-8");
mg_send_header(conn, "Access-Control-Allow-Origin", "*");
if (json == NULL) {