mod_http_files: Use API for config options that are file paths

This commit is contained in:
Kim Alvefur 2017-03-16 20:53:08 +01:00
parent c3d7d52f0d
commit 0655146d21

View file

@ -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();