mod_bosh: Update to use new httpserver.new_from_config syntax

Sat, 03 Oct 2009 00:56:45 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 03 Oct 2009 00:56:45 +0100
changeset 1869
7456bb2a3458
parent 1868
36e1238db2f2
child 1870
5b5e4a4ecb55

mod_bosh: Update to use new httpserver.new_from_config syntax

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_bosh.lua	Sat Oct 03 00:54:58 2009 +0100
+++ b/plugins/mod_bosh.lua	Sat Oct 03 00:56:45 2009 +0100
@@ -298,6 +298,6 @@
 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);

mercurial