aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitff9ffc23510278c9c7e7d04789a0d4e529211484 (patch)
tree27889eebf7fe035ae6d325bb16521fb7dd1d8ea8 /plugins
parentaf906903993b13bbdd304015ef8fb07355c0b984 (diff)
downloadprosody-ff9ffc23510278c9c7e7d04789a0d4e529211484.tar.gz
prosody-ff9ffc23510278c9c7e7d04789a0d4e529211484.zip
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
Diffstat (limited to 'plugins')
-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;
};
});