aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_files.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-16 20:46:06 +0100
committerKim Alvefur <zash@zash.se>2017-03-16 20:46:06 +0100
commitc3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0 (patch)
tree3eb037d679778fc3effcf9e0c850e8b6b781b032 /plugins/mod_http_files.lua
parent0bf98e614f8ce41994280fabf07738c5c22404bf (diff)
downloadprosody-c3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0.tar.gz
prosody-c3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0.zip
plugins/various: Use type-specific config API
Diffstat (limited to 'plugins/mod_http_files.lua')
-rw-r--r--plugins/mod_http_files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua
index ab2f3966..7735cfbb 100644
--- a/plugins/mod_http_files.lua
+++ b/plugins/mod_http_files.lua
@@ -19,7 +19,7 @@ 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 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("http_index_files", { "index.html", "index.htm" });
+local dir_indices = module:get_option_array("http_index_files", { "index.html", "index.htm" });
local directory_index = module:get_option_boolean("http_dir_listing");
local mime_map = module:shared("/*/http_files/mime").types;