--- a/mod_http_muc_log/mod_http_muc_log.lua Thu Nov 20 20:01:07 2014 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua Tue Dec 02 14:14:38 2014 +0100
@@ -237,7 +237,7 @@
end
until not next_day;
- response.headers.content_type = "text/html";
+ response.headers.content_type = "text/html; charset=utf-8";
return dates_template{
host = module.host;
canonical = module:http_url() .. "/" .. path;
@@ -316,7 +316,7 @@
module:log("debug", "Previous message: %s", datetime.datetime(when));
end
- response.headers.content_type = "text/html";
+ response.headers.content_type = "text/html; charset=utf-8";
return page_template{
canonical = module:http_url() .. "/" .. path;
host = module.host;
@@ -340,7 +340,7 @@
end
end
- event.response.headers.content_type = "text/html";
+ event.response.headers.content_type = "text/html; charset=utf-8";
return room_list_template {
host = module.host;
canonical = module:http_url() .. "/";
@@ -365,7 +365,7 @@
end
module:log("debug", "Server cache hit");
response.headers.etag = etag;
- response.headers.content_type = "text/html";
+ response.headers.content_type = "text/html; charset=utf-8";
return cached[1];
end
@@ -380,7 +380,7 @@
cache[ckey] = cached;
end
- response.headers.content_type = "text/html";
+ response.headers.content_type = "text/html; charset=utf-8";
return render;
end
end