diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-16 20:53:08 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-16 20:53:08 +0100 |
commit | 1483204b10c3fa1e6d4a2a85e975ba7ff8178a89 (patch) | |
tree | 130f722b8d9a0361c865f984f09814a0aa8df468 /plugins | |
parent | fb749e207600e861af3f836a0316ad97fb41e553 (diff) | |
download | prosody-1483204b10c3fa1e6d4a2a85e975ba7ff8178a89.tar.gz prosody-1483204b10c3fa1e6d4a2a85e975ba7ff8178a89.zip |
mod_http_files: Use API for config options that are file paths
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index 7735cfbb..e396df60 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -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(); |