diff mod_websocket/mod_websocket.lua @ 909:ec4c6e8f277d

mod_websocket: Change the HTTP name to websocket, and override the default_path instead
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 13 Feb 2013 21:03:45 +0100
parents eae665bc2122
children c469a2b2d77d
line wrap: on
line diff
--- a/mod_websocket/mod_websocket.lua	Mon Feb 11 19:21:31 2013 +0100
+++ b/mod_websocket/mod_websocket.lua	Wed Feb 13 21:03:45 2013 +0100
@@ -245,7 +245,8 @@
 function module.add_host(module)
 	module:depends("http");
 	module:provides("http", {
-		name = "xmpp-websocket";
+		name = "websocket";
+		default_path = "xmpp-websocket";
 		route = {
 			["GET"] = handle_request;
 			["GET /"] = handle_request;