Changeset

1870:5b5e4a4ecb55

mod_httpserver: Update to use new httpserver.new_from_config syntax
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Oct 2009 00:57:26 +0100
parents 1869:7456bb2a3458
children 1871:838d1317bca4
files plugins/mod_httpserver.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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" });