Diff

plugins/mod_http_files.lua @ 7991:35a02ba83af2

mod_http_files: Use path variant of config option API for http_files_dir
author Kim Alvefur <zash@zash.se>
date Tue, 21 Mar 2017 12:06:52 +0100
parent 7985:6521a51bb718
child 8757:861a7d6c12d8
line wrap: on
line diff
--- a/plugins/mod_http_files.lua	Mon Mar 20 00:48:28 2017 +0100
+++ b/plugins/mod_http_files.lua	Tue Mar 21 12:06:52 2017 +0100
@@ -16,7 +16,7 @@
 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" });