From c82ef6e3bcbb1765713f020080319d11b2c70f68 Mon Sep 17 00:00:00 2001 From: TrasherDK Date: Fri, 25 Oct 2019 19:00:16 +0200 Subject: [PATCH] Add Content-Type to JSON response --- src/webui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webui.c b/src/webui.c index f99817a..785a319 100644 --- a/src/webui.c +++ b/src/webui.c @@ -107,6 +107,7 @@ send_json_stats (void *cls, struct MHD_Connection *connection) mh, mb); response = MHD_create_response_from_buffer(strlen(json), (void*) json, MHD_RESPMEM_MUST_COPY); + MHD_add_response_header (response, "Content-Type", "application/json"); ret = MHD_queue_response(connection, MHD_HTTP_OK, response); MHD_destroy_response(response); return ret;