diff --git a/src/modules/mod_status.c b/src/modules/mod_status.c index cd8f500..e4c2467 100644 --- a/src/modules/mod_status.c +++ b/src/modules/mod_status.c @@ -46,7 +46,7 @@ static gint str_comp(gconstpointer a, gconstpointer b); /* html snippet constants */ static const gchar html_header[] = - "\n" + "\n" "\n" "\n" @@ -699,7 +699,7 @@ static void status_collect_cb(gpointer cbdata, gpointer fdata, GPtrArray *result "\n" )); li_chunkqueue_append_string(vr->out, html); - li_http_header_overwrite(vr->response.headers, CONST_STR_LEN("Content-Type"), CONST_STR_LEN("text/html")); + li_http_header_overwrite(vr->response.headers, CONST_STR_LEN("Content-Type"), CONST_STR_LEN("text/html; charset=utf-8")); g_string_free(count_req, TRUE); g_string_free(count_bin, TRUE); @@ -1030,7 +1030,7 @@ static liHandlerResult status_info_runtime(liVRequest *vr, liPlugin *p) { )); li_chunkqueue_append_string(vr->out, html); - li_http_header_overwrite(vr->response.headers, CONST_STR_LEN("Content-Type"), CONST_STR_LEN("text/html")); + li_http_header_overwrite(vr->response.headers, CONST_STR_LEN("Content-Type"), CONST_STR_LEN("text/html; charset=utf-8")); vr->response.http_status = 200; li_vrequest_handle_direct(vr);