diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-27 19:05:03 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-27 19:05:03 +0100 |
commit | ff9ffc23510278c9c7e7d04789a0d4e529211484 (patch) | |
tree | 27889eebf7fe035ae6d325bb16521fb7dd1d8ea8 | |
parent | af906903993b13bbdd304015ef8fb07355c0b984 (diff) | |
download | prosody-ff9ffc23510278c9c7e7d04789a0d4e529211484.tar.gz prosody-ff9ffc23510278c9c7e7d04789a0d4e529211484.zip |
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
-rw-r--r-- | plugins/mod_bosh.lua | 3 |
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; }; }); |