# HG changeset patch # User Kim Alvefur # Date 1523983257 -7200 # Node ID 861a7d6c12d8c9380cd4cd28e01e41737a1b5eca # Parent 0fd63ed1f6471b472850de6108c1c19dec80cbc7 mod_http_files: Correct cache insertion (fixes #1130) diff -r 0fd63ed1f647 -r 861a7d6c12d8 plugins/mod_http_files.lua --- 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