Diff

mod_websocket/mod_websocket.lua @ 849:6e2ec1825182

mod_websocket: Accept GET request without trailing /
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 15 Oct 2012 21:02:43 +0200
parent 844:a0987c0e4e1d
child 853:4d27552ac443
line wrap: on
line diff
--- a/mod_websocket/mod_websocket.lua	Mon Oct 15 20:56:15 2012 +0200
+++ b/mod_websocket/mod_websocket.lua	Mon Oct 15 21:02:43 2012 +0200
@@ -470,7 +470,8 @@
 	module:provides("http", {
 		name = "xmpp-websocket";
 		route = {
-			["GET /*"] = handle_request;
+			["GET"] = handle_request;
+			["GET /"] = handle_request;
 		};
 	});
 end