Use correct content type for JSON.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-10-23 19:24:55 +02:00
parent d37bdd9cc7
commit 4c36b8ee33
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static int print_json(struct mg_connection *conn, void *input)
mg_printf(conn,
"HTTP/1.1 200 OK\r\n"
"Content-Length: %lu\r\n"
"Content-Type: text/plain\r\n"
"Content-Type: application/json\r\n"
"Connection: close\r\n\r\n",
len);
mg_write(conn, msg, len);