mod_bosh: Update to use new httpserver.new_from_config syntax
authorMatthew Wild <mwild1@gmail.com>
Fri, 2 Oct 2009 23:56:45 +0000 (00:56 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 2 Oct 2009 23:56:45 +0000 (00:56 +0100)
plugins/mod_bosh.lua

index 0dd4a192bfb266ead22fb21f10eab60a24b0270e..fddd5c111090108f3506e1e83b6814b11a7d7fac 100644 (file)
@@ -298,6 +298,6 @@ function on_timer()
 end
 
 local ports = module:get_option("bosh_ports") or { 5280 };
-httpserver.new_from_config(ports, "http-bind", handle_request);
+httpserver.new_from_config(ports, handle_request, { base = "http-bind" });
 
 server.addtimer(on_timer);