mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_http_files: Use API for config options that are file paths
This commit is contained in:
parent
c3d7d52f0d
commit
0655146d21
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ if not mime_map then
|
|||
};
|
||||
module:shared("/*/http_files/mime").types = mime_map;
|
||||
|
||||
local mime_types, err = open(module:get_option_string("mime_types_file", "/etc/mime.types"),"r");
|
||||
local mime_types, err = open(module:get_option_path("mime_types_file", "/etc/mime.types", prosody.paths.config), "r");
|
||||
if mime_types then
|
||||
local mime_data = mime_types:read("*a");
|
||||
mime_types:close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue