Mercurial > prosody-modules
diff mod_invites_register_web/mod_invites_register_web.lua @ 4129:ca099bd28bf5
mod_invites_page, mod_invites_register_web: Set correct Content-Type everywhere necessary
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 15 Sep 2020 14:11:48 +0100 |
parents | 559ca8d93302 |
children | 3a03ae9a0882 |
line wrap: on
line diff
--- a/mod_invites_register_web/mod_invites_register_web.lua Tue Sep 15 11:54:48 2020 +0100 +++ b/mod_invites_register_web/mod_invites_register_web.lua Tue Sep 15 14:11:48 2020 +0100 @@ -34,6 +34,8 @@ }; end + event.response.headers["Content-Type"] = "text/html; charset=utf-8"; + local invite_page = render_html_template(register_page_template, { site_name = site_name; token = invite.token; @@ -66,7 +68,7 @@ }; end - response.headers.content_type = "text/html; charset=utf-8"; + event.response.headers["Content-Type"] = "text/html; charset=utf-8"; if not user or #user == 0 or not password or #password == 0 or not token then return render_html_template(register_page_template, {