--- a/mod_websocket/mod_websocket.lua Sun May 27 17:09:19 2012 +0200
+++ b/mod_websocket/mod_websocket.lua Sun May 27 17:17:52 2012 +0200
@@ -22,9 +22,6 @@
local bxor = require "bit".bxor;
local tohex = require "bit".tohex;
-module:depends("http")
-
-
local xpcall, tostring, type = xpcall, tostring, type;
local traceback = debug.traceback;
@@ -330,7 +327,8 @@
return "";
end
-function module.load()
+function module.add_host(module)
+ module:depends("http");
module:provides("http", {
name = "xmpp-websocket";
route = {