From 15b5936dc0c7fa70d003161b9db20a0ac83a0061 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 27 Apr 2012 19:05:03 +0100 Subject: mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again --- plugins/mod_bosh.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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; }; }); -- cgit v1.2.3