Software /
code /
prosody
Changeset
4725:d085db6285db
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 19:05:03 +0100 |
parents | 4724:a8c234332258 |
children | 4726:917a5ffb73f1 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Fri Apr 27 19:02:36 2012 +0100 +++ b/plugins/mod_bosh.lua Fri Apr 27 19:05:03 2012 +0100 @@ -435,8 +435,11 @@ 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; }; });