changeset 849:6e2ec1825182

mod_websocket: Accept GET request without trailing /
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 15 Oct 2012 21:02:43 +0200
parents 14e10bce7463
children 0900ba54991e
files mod_websocket/mod_websocket.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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