Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 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 |
parent | 4697:778eb9405a98 |
child | 4738:e95458712782 |
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; }; });