Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 4697:778eb9405a98
mod_bosh: Update informational message on GET
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 26 Apr 2012 05:56:24 +0100 |
parent | 4692:8e7c683d78ca |
child | 4725:d085db6285db |
comparison
equal
deleted
inserted
replaced
4696:4700e318add1 | 4697:778eb9405a98 |
---|---|
99 end | 99 end |
100 end | 100 end |
101 end | 101 end |
102 | 102 |
103 local function handle_GET(request) | 103 local function handle_GET(request) |
104 return "<html><body>You really don't look like a BOSH client to me... what do you want?</body></html>"; | 104 return [[<html><body> |
105 <p>It works! Now point your BOSH client to this URL to connect to Prosody.</p> | |
106 <p>For more information see <a href="http://prosody.im/doc/setting_up_bosh">Prosody: Setting up BOSH</a>.</p> | |
107 </body></html>]]; | |
105 end | 108 end |
106 | 109 |
107 function handle_OPTIONS(request) | 110 function handle_OPTIONS(request) |
108 local headers = {}; | 111 local headers = {}; |
109 for k,v in pairs(default_headers) do headers[k] = v; end | 112 for k,v in pairs(default_headers) do headers[k] = v; end |