mod_httpserver: Update to use new httpserver.new_from_config syntax

Sat, 03 Oct 2009 00:57:26 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 03 Oct 2009 00:57:26 +0100
changeset 1870
5b5e4a4ecb55
parent 1869
7456bb2a3458
child 1871
838d1317bca4

mod_httpserver: Update to use new httpserver.new_from_config syntax

plugins/mod_httpserver.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_httpserver.lua	Sat Oct 03 00:56:45 2009 +0100
+++ b/plugins/mod_httpserver.lua	Sat Oct 03 00:57:26 2009 +0100
@@ -58,4 +58,4 @@
 
 local ports = config.get(module.host, "core", "http_ports") or { 5280 };
 httpserver.set_default_handler(handle_default_request);
-httpserver.new_from_config(ports, "files", handle_file_request);
+httpserver.new_from_config(ports, handle_file_request, { base = "files" });

mercurial