@@ -80,24 +80,28 @@ int httpd::req_handler(void * cls,
80
80
81
81
rsp = MHD_create_response_from_buffer (sHtmlCssSize , (void *)sHtmlCssFile , MHD_RESPMEM_PERSISTENT);
82
82
MHD_add_response_header (rsp, " ETag" , sHtmlCssEtag );
83
+ MHD_add_response_header (rsp, " Content-Type" , " text/css; charset=utf-8" );
83
84
}
84
85
else if (strcasecmp (url, " /h" ) == 0 || strcasecmp (url, " /hashrate" ) == 0 )
85
86
{
86
87
executor::inst ()->get_http_report (EV_HTML_HASHRATE, str);
87
88
88
89
rsp = MHD_create_response_from_buffer (str.size (), (void *)str.c_str (), MHD_RESPMEM_MUST_COPY);
90
+ MHD_add_response_header (rsp, " Content-Type" , " text/html; charset=utf-8" );
89
91
}
90
92
else if (strcasecmp (url, " /c" ) == 0 || strcasecmp (url, " /connection" ) == 0 )
91
93
{
92
94
executor::inst ()->get_http_report (EV_HTML_CONNSTAT, str);
93
95
94
96
rsp = MHD_create_response_from_buffer (str.size (), (void *)str.c_str (), MHD_RESPMEM_MUST_COPY);
97
+ MHD_add_response_header (rsp, " Content-Type" , " text/html; charset=utf-8" );
95
98
}
96
99
else if (strcasecmp (url, " /r" ) == 0 || strcasecmp (url, " /results" ) == 0 )
97
100
{
98
101
executor::inst ()->get_http_report (EV_HTML_RESULTS, str);
99
102
100
103
rsp = MHD_create_response_from_buffer (str.size (), (void *)str.c_str (), MHD_RESPMEM_MUST_COPY);
104
+ MHD_add_response_header (rsp, " Content-Type" , " text/html; charset=utf-8" );
101
105
}
102
106
else
103
107
{
0 commit comments