From c4f68640bb3e57fd9c9570a80528f8cf2c575cad Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 17 Apr 2018 18:40:57 +0200 Subject: mod_http_files: Correct cache insertion (fixes #1130) --- plugins/mod_http_files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index e477bafe..c5986e37 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -144,7 +144,7 @@ function serve(opts) 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 -- cgit v1.2.3