From 0f64dd00ff74eadf0abe04bc48f15203e5c7a0da Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 17 Mar 2017 23:02:35 +0100 Subject: mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it --- plugins/mod_http_files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3