aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_files.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-21 12:06:52 +0100
committerKim Alvefur <zash@zash.se>2017-03-21 12:06:52 +0100
commitdb1c5183b1690f9b0a3357215641dbbcdda4b5f9 (patch)
tree6dbd152d6f721e88e2ac9bf85d6b615c22cfd77c /plugins/mod_http_files.lua
parent2200724140d472766c3e78bab761f9cbce97b020 (diff)
downloadprosody-db1c5183b1690f9b0a3357215641dbbcdda4b5f9.tar.gz
prosody-db1c5183b1690f9b0a3357215641dbbcdda4b5f9.zip
mod_http_files: Use path variant of config option API for http_files_dir
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 b9a84cd3..e477bafe 100644
--- a/plugins/mod_http_files.lua
+++ b/plugins/mod_http_files.lua
@@ -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" });