Software /
code /
prosody
Changeset
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 | 7977:01d6298de991 |
children | 7979:a1e88642411d |
files | plugins/mod_http_files.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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();