Mercurial > prosody-hg
diff plugins/mod_http_files.lua @ 7978:01aa6344a556
mod_http_files: Use API for config options that are file paths
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 16 Mar 2017 20:53:08 +0100 |
| parents | 01d6298de991 |
| children | 6521a51bb718 |
line wrap: on
line diff
--- a/plugins/mod_http_files.lua Thu Mar 16 20:46:06 2017 +0100 +++ b/plugins/mod_http_files.lua Thu Mar 16 20:53:08 2017 +0100 @@ -37,7 +37,7 @@ }; 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();
