Mercurial > prosody-hg
diff plugins/mod_http_files.lua @ 5688:345761f0c2be
mod_http_files: Put the MIME type map in a global shared table
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 13 Jun 2013 23:31:11 +0200 |
| parents | 7bc52402966d |
| children | 16db80c2b74d |
line wrap: on
line diff
--- a/plugins/mod_http_files.lua Thu Jun 13 18:20:49 2013 +0200 +++ b/plugins/mod_http_files.lua Thu Jun 13 23:31:11 2013 +0200 @@ -19,7 +19,7 @@ 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",
