Comparison

mod_conversejs/mod_conversejs.lua @ 3337:b46bb9392efe

mod_conversejs: Set a friendly name for mod_http_index
author Kim Alvefur <zash@zash.se>
date Thu, 27 Sep 2018 17:15:37 +0200
parent 3333:5be90562e14b
child 3347:823156d5885b
comparison
equal deleted inserted replaced
3336:4af114684e0a 3337:b46bb9392efe
85 end 85 end
86 html_template = html_template:gsub("</head>", table.concat(tags, "\n"):gsub("%%", "%%").."\n</head>"); 86 html_template = html_template:gsub("</head>", table.concat(tags, "\n"):gsub("%%", "%%").."\n</head>");
87 end 87 end
88 88
89 module:provides("http", { 89 module:provides("http", {
90 title = "Converse.js";
90 route = { 91 route = {
91 GET = function (event) 92 GET = function (event)
92 local converse_options = get_converse_options(); 93 local converse_options = get_converse_options();
93 94
94 event.response.headers.content_type = "text/html"; 95 event.response.headers.content_type = "text/html";