Changeset

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 5687:e879b53e9df8
children 5689:832ea1e9ac9e
files plugins/mod_http_files.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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",