mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it
This commit is contained in:
parent
b9135dfdd2
commit
0f64dd00ff
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;
|
module:shared("/*/http_files/mime").types = mime_map;
|
||||||
|
|
||||||
local mime_types, err = open(module:get_option_path("mime_types_file", "/etc/mime.types", prosody.paths.config), "r");
|
local mime_types, err = open(module:get_option_path("mime_types_file", "/etc/mime.types", "config"), "r");
|
||||||
if mime_types then
|
if mime_types then
|
||||||
local mime_data = mime_types:read("*a");
|
local mime_data = mime_types:read("*a");
|
||||||
mime_types:close();
|
mime_types:close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue