plugins/mod_http_files.lua
changeset 7980 01d6298de991
parent 7494 491975f5d383
child 7981 01aa6344a556
equal deleted inserted replaced
7979:2a7ef5fcaa77 7980:01d6298de991
    17 local path_sep = package.config:sub(1,1);
    17 local path_sep = package.config:sub(1,1);
    18 
    18 
    19 local base_path = module:get_option_string("http_files_dir", module:get_option_string("http_path"));
    19 local base_path = module:get_option_string("http_files_dir", module:get_option_string("http_path"));
    20 local cache_size = module:get_option_number("http_files_cache_size", 128);
    20 local cache_size = module:get_option_number("http_files_cache_size", 128);
    21 local cache_max_file_size = module:get_option_number("http_files_cache_max_file_size", 4096);
    21 local cache_max_file_size = module:get_option_number("http_files_cache_max_file_size", 4096);
    22 local dir_indices = module:get_option("http_index_files", { "index.html", "index.htm" });
    22 local dir_indices = module:get_option_array("http_index_files", { "index.html", "index.htm" });
    23 local directory_index = module:get_option_boolean("http_dir_listing");
    23 local directory_index = module:get_option_boolean("http_dir_listing");
    24 
    24 
    25 local mime_map = module:shared("/*/http_files/mime").types;
    25 local mime_map = module:shared("/*/http_files/mime").types;
    26 if not mime_map then
    26 if not mime_map then
    27 	mime_map = {
    27 	mime_map = {