Diff

plugins/mod_httpserver.lua @ 1816:1c0bde3db7d8

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Thu, 24 Sep 2009 11:16:25 +0100
parent 1771:39e6b986ef01
parent 1812:e32593074602
child 1870:5b5e4a4ecb55
line wrap: on
line diff
--- a/plugins/mod_httpserver.lua	Mon Sep 21 14:46:12 2009 +0100
+++ b/plugins/mod_httpserver.lua	Thu Sep 24 11:16:25 2009 +0100
@@ -12,7 +12,7 @@
 local open = io.open;
 local t_concat = table.concat;
 
-local http_base = "www_files";
+local http_base = config.get("*", "core", "http_path") or "www_files";
 
 local response_400 = { status = "400 Bad Request", body = "<h1>Bad Request</h1>Sorry, we didn't understand your request :(" };
 local response_404 = { status = "404 Not Found", body = "<h1>Page Not Found</h1>Sorry, we couldn't find what you were looking for :(" };