Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 10728:2764beb552cd
mod_bosh, mod_websocket: Add config options to override GET responses
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Apr 2020 11:30:59 +0100 |
parent | 10377:4c36bc28b99e |
child | 11125:5bcddab1659b |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Sun Apr 19 13:04:12 2020 +0200 +++ b/plugins/mod_bosh.lua Mon Apr 20 11:30:59 2020 +0100 @@ -511,14 +511,16 @@ 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");