# HG changeset patch # User Kim Alvefur # Date 1417526078 -3600 # Node ID 9e784ddac236b0d11afb4d81fecb75f02fa76efe # Parent a68ec7a2dc02d87dd406f146c52d0af24dfc049e mod_http_muc_log: Include charset in Content-Type header diff -r a68ec7a2dc02 -r 9e784ddac236 mod_http_muc_log/mod_http_muc_log.lua --- 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