diff options
author | fireice-uk <fireice2@o2.pl> | 2017-03-15 13:24:43 +0000 |
---|---|---|
committer | fireice-uk <fireice2@o2.pl> | 2017-03-15 13:24:43 +0000 |
commit | 1d5ee57e4298a9970e766e288dcbbe080efb57b9 (patch) | |
tree | 192fdb4f3d3bebf49deb7699b910dc28b59cfb7a | |
parent | fa4656c967c298c4b2eb803fdb226f4516fc0395 (diff) | |
download | xmr-stak-1d5ee57e4298a9970e766e288dcbbe080efb57b9.zip xmr-stak-1d5ee57e4298a9970e766e288dcbbe080efb57b9.tar.gz |
MIME types
-rw-r--r-- | httpd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,24 +80,28 @@ int httpd::req_handler(void * cls, rsp = MHD_create_response_from_buffer(sHtmlCssSize, (void*)sHtmlCssFile, MHD_RESPMEM_PERSISTENT); MHD_add_response_header(rsp, "ETag", sHtmlCssEtag); + MHD_add_response_header(rsp, "Content-Type", "text/css; charset=utf-8"); } else if(strcasecmp(url, "/h") == 0 || strcasecmp(url, "/hashrate") == 0) { executor::inst()->get_http_report(EV_HTML_HASHRATE, str); rsp = MHD_create_response_from_buffer(str.size(), (void*)str.c_str(), MHD_RESPMEM_MUST_COPY); + MHD_add_response_header(rsp, "Content-Type", "text/html; charset=utf-8"); } else if(strcasecmp(url, "/c") == 0 || strcasecmp(url, "/connection") == 0) { executor::inst()->get_http_report(EV_HTML_CONNSTAT, str); rsp = MHD_create_response_from_buffer(str.size(), (void*)str.c_str(), MHD_RESPMEM_MUST_COPY); + MHD_add_response_header(rsp, "Content-Type", "text/html; charset=utf-8"); } else if(strcasecmp(url, "/r") == 0 || strcasecmp(url, "/results") == 0) { executor::inst()->get_http_report(EV_HTML_RESULTS, str); rsp = MHD_create_response_from_buffer(str.size(), (void*)str.c_str(), MHD_RESPMEM_MUST_COPY); + MHD_add_response_header(rsp, "Content-Type", "text/html; charset=utf-8"); } else { |