Changeset

8757:861a7d6c12d8

mod_http_files: Correct cache insertion (fixes #1130)
author Kim Alvefur <zash@zash.se>
date Tue, 17 Apr 2018 18:40:57 +0200
parents 8741:0fd63ed1f647
children 8758:c380a22d52d5
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	Fri Apr 06 22:12:45 2018 +0200
+++ b/plugins/mod_http_files.lua	Tue Apr 17 18:40:57 2018 +0200
@@ -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