aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-04-20 11:30:59 +0100
committerMatthew Wild <mwild1@gmail.com>2020-04-20 11:30:59 +0100
commitff9bdefc7e961f217580194146ee6bda8c6b9827 (patch)
tree504095993b367f283ef80bc679bf8d653a224ecc /plugins/mod_bosh.lua
parenta63e5be1b71a74d78c5d95288c759d70d971f729 (diff)
downloadprosody-ff9bdefc7e961f217580194146ee6bda8c6b9827.tar.gz
prosody-ff9bdefc7e961f217580194146ee6bda8c6b9827.zip
mod_bosh, mod_websocket: Add config options to override GET responses
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index b45a9dc2..d4c1ac6a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -511,14 +511,16 @@ function stream_callbacks.error(context, error)
end
end
+local GET_response_body = [[<html><body>
+ <p>It works! Now point your BOSH client to this URL to connect to Prosody.</p>
+ <p>For more information see <a href="https://prosody.im/doc/setting_up_bosh">Prosody: Setting up BOSH</a>.</p>
+ </body></html>]];
+
local GET_response = {
headers = {
content_type = "text/html";
};
- body = [[<html><body>
- <p>It works! Now point your BOSH client to this URL to connect to Prosody.</p>
- <p>For more information see <a href="https://prosody.im/doc/setting_up_bosh">Prosody: Setting up BOSH</a>.</p>
- </body></html>]];
+ body = module:get_option_string("bosh_get_response_body", GET_response_body);
};
module:depends("http");