mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
Merge pull request #16 from trasherdk/web-ui-content-type
Add Content-Type to JSON response
This commit is contained in:
commit
e784fb24ac
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ send_json_stats (void *cls, struct MHD_Connection *connection)
|
||||||
mh, mb);
|
mh, mb);
|
||||||
response = MHD_create_response_from_buffer(strlen(json),
|
response = MHD_create_response_from_buffer(strlen(json),
|
||||||
(void*) json, MHD_RESPMEM_MUST_COPY);
|
(void*) json, MHD_RESPMEM_MUST_COPY);
|
||||||
|
MHD_add_response_header (response, "Content-Type", "application/json");
|
||||||
ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
|
ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
|
||||||
MHD_destroy_response(response);
|
MHD_destroy_response(response);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue