diff plugins/mod_http_files.lua @ 8759:9e839fb4541a

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Apr 2018 22:59:41 +0100
parents 861a7d6c12d8
children 6489d75ff1d6
line wrap: on
line diff
--- a/plugins/mod_http_files.lua	Wed Apr 18 08:49:44 2018 +0100
+++ b/plugins/mod_http_files.lua	Tue Apr 24 22:59:41 2018 +0100
@@ -144,7 +144,7 @@
 			if not data then
 				return 403;
 			end
-			cache[orig_path] = { data = data, content_type = mime_map.html; etag = etag; };
+			cache:set(orig_path, { data = data, content_type = mime_map.html; etag = etag; });
 			response_headers.content_type = mime_map.html;
 
 		else