aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-17 23:02:35 +0100
committerKim Alvefur <zash@zash.se>2017-03-17 23:02:35 +0100
commitcf02edf36ed6b8b1234553fc54b8384e9db0be7e (patch)
tree6d41fdff38d4781253be0525b2a434e79be8e116 /plugins
parent649b17b2e49b40796de43692b04bba22f6bf5c9b (diff)
downloadprosody-cf02edf36ed6b8b1234553fc54b8384e9db0be7e.tar.gz
prosody-cf02edf36ed6b8b1234553fc54b8384e9db0be7e.zip
mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http_files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua
index e396df60..b9a84cd3 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_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
local mime_data = mime_types:read("*a");
mime_types:close();