mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
authorMatthew Wild <mwild1@gmail.com>
Fri, 27 Apr 2012 19:05:03 +0100
changeset 4725 d085db6285db
parent 4724 a8c234332258
child 4726 917a5ffb73f1
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
plugins/mod_bosh.lua
--- 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;
 		};
 	});