# HG changeset patch # User Kim Alvefur # Date 1371159071 -7200 # Node ID 345761f0c2be2ed67cd3e7dfdff7ceeea786ebc9 # Parent e879b53e9df889125882560eaf91e5258204d4dc mod_http_files: Put the MIME type map in a global shared table diff -r e879b53e9df8 -r 345761f0c2be plugins/mod_http_files.lua --- 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",