mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_http_files: Use path variant of config option API for http_files_dir
This commit is contained in:
parent
83d1e9570a
commit
c2c4f7fbc4
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ local stat = lfs.attributes;
|
|||
local build_path = require"socket.url".build_path;
|
||||
local path_sep = package.config:sub(1,1);
|
||||
|
||||
local base_path = module:get_option_string("http_files_dir", module:get_option_string("http_path"));
|
||||
local base_path = module:get_option_path("http_files_dir", module:get_option_path("http_path"));
|
||||
local cache_size = module:get_option_number("http_files_cache_size", 128);
|
||||
local cache_max_file_size = module:get_option_number("http_files_cache_max_file_size", 4096);
|
||||
local dir_indices = module:get_option_array("http_index_files", { "index.html", "index.htm" });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue