# HG changeset patch # User Kim Alvefur # Date 1489693988 -3600 # Node ID 01aa6344a556a720de1e796653cd94df29663926 # Parent 01d6298de99167a1d9775ff3f9877e635215facb mod_http_files: Use API for config options that are file paths diff -r 01d6298de991 -r 01aa6344a556 plugins/mod_http_files.lua --- 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();