From 3b815e37b4d7d9bff72cb9bcceae8edb2eb9360b Mon Sep 17 00:00:00 2001 From: Gary Hall Date: Tue, 26 Aug 2014 11:08:39 +0100 Subject: [PATCH] Changed `Content-Type` header to `application/json`. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 3498517..66de2ec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -687,7 +687,7 @@ static void handle_suggest(client_t *client, parsed_url_t &url) { mg_printf(conn, "%s:%d\n", results[i].first.c_str(), results[i].second); } */ - headers["Content-Type"] = "text/plain; charset=UTF-8"; + headers["Content-Type"] = "application/json; charset=UTF-8"; if (has_cb) { body = cb + "(" + results_json(q, results, type) + ");\n"; }