diff options
author | Kim Alvefur <zash@zash.se> | 2013-06-13 23:31:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-06-13 23:31:11 +0200 |
commit | b11b8a61b42cb8ce88b80e6aff41f0e9062b99c4 (patch) | |
tree | e6ab2aeaba00906726196361d54a7db07c3bd83e /plugins/mod_http_files.lua | |
parent | 216b3a3df35f3631e0955870c2e97ac466e064ed (diff) | |
download | prosody-b11b8a61b42cb8ce88b80e6aff41f0e9062b99c4.tar.gz prosody-b11b8a61b42cb8ce88b80e6aff41f0e9062b99c4.zip |
mod_http_files: Put the MIME type map in a global shared table
Diffstat (limited to 'plugins/mod_http_files.lua')
-rw-r--r-- | plugins/mod_http_files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index 915bec58..59fd50aa 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -19,7 +19,7 @@ local base_path = module:get_option_string("http_files_dir", module:get_option_s local dir_indices = module:get_option("http_index_files", { "index.html", "index.htm" }); local directory_index = module:get_option_boolean("http_dir_listing"); -local mime_map = module:shared("mime").types; +local mime_map = module:shared("/*/http_files/mime").types; if not mime_map then mime_map = { html = "text/html", htm = "text/html", |