mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it
authorKim Alvefur <zash@zash.se>
Fri, 17 Mar 2017 23:02:35 +0100
changeset 7988 6521a51bb718
parent 7986 879be73c0a58
child 7989 522099269b49
child 7990 b3ee697158b5
mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it
plugins/mod_http_files.lua
--- a/plugins/mod_http_files.lua	Fri Mar 17 13:04:18 2017 +0000
+++ b/plugins/mod_http_files.lua	Fri Mar 17 23:02:35 2017 +0100
@@ -37,7 +37,7 @@
 	};
 	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();