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 | 15b5936dc0c7fa70d003161b9db20a0ac83a0061 (patch) | |
tree | 27889eebf7fe035ae6d325bb16521fb7dd1d8ea8 /plugins | |
parent | 27e152ee76cb2e262c6bfb73214ec9d4957e94bd (diff) | |
download | prosody-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')
-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; }; }); |