aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-27 19:05:03 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-27 19:05:03 +0100
commit15b5936dc0c7fa70d003161b9db20a0ac83a0061 (patch)
tree27889eebf7fe035ae6d325bb16521fb7dd1d8ea8 /plugins/mod_bosh.lua
parent27e152ee76cb2e262c6bfb73214ec9d4957e94bd (diff)
downloadprosody-15b5936dc0c7fa70d003161b9db20a0ac83a0061.tar.gz
prosody-15b5936dc0c7fa70d003161b9db20a0ac83a0061.zip
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 13cea911..84adb369 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -435,8 +435,11 @@ function module.add_host(module)
module:provides("http", {
default_path = "/http-bind";
route = {
+ ["GET"] = handle_GET;
["GET /"] = handle_GET;
+ ["OPTIONS"] = handle_OPTIONS;
["OPTIONS /"] = handle_OPTIONS;
+ ["POST"] = handle_POST;
["POST /"] = handle_POST;
};
});