Comparison

plugins/mod_http_files.lua @ 4703:684ea42ca77a

mod_http_files: Change option name from http_path to http_files_dir
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Apr 2012 06:42:02 +0100
parent 4701:3ce9e1ca9c15
child 4716:6eeb142a8073
comparison
equal deleted inserted replaced
4702:5a85e541de1a 4703:684ea42ca77a
10 local lfs = require "lfs"; 10 local lfs = require "lfs";
11 11
12 local open = io.open; 12 local open = io.open;
13 local stat = lfs.attributes; 13 local stat = lfs.attributes;
14 14
15 local http_base = module:get_option_string("http_path", "www_files"); 15 local http_base = module:get_option_string("http_files_dir", module:get_option_string("http_path", "www_files"));
16 16
17 -- TODO: Should we read this from /etc/mime.types if it exists? (startup time...?) 17 -- TODO: Should we read this from /etc/mime.types if it exists? (startup time...?)
18 local mime_map = { 18 local mime_map = {
19 html = "text/html"; 19 html = "text/html";
20 htm = "text/html"; 20 htm = "text/html";