mirror of
https://github.com/wownero/wownero-puddle.git
synced 2026-11-17 05:35:16 +01:00
Add Content-Type to JSON response
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user