aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_files.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-17 18:40:57 +0200
committerKim Alvefur <zash@zash.se>2018-04-17 18:40:57 +0200
commitfb4a0b521b82a3ef5bd18d5a9da98a8a43d37e4d (patch)
treec947879fd9ae9bdacadcbb26e6cb50128ce9f60e /plugins/mod_http_files.lua
parentca12c9ac8c62637d7c08e4d77a11a91eede49a85 (diff)
downloadprosody-fb4a0b521b82a3ef5bd18d5a9da98a8a43d37e4d.tar.gz
prosody-fb4a0b521b82a3ef5bd18d5a9da98a8a43d37e4d.zip
mod_http_files: Correct cache insertion (fixes #1130)
Diffstat (limited to 'plugins/mod_http_files.lua')
-rw-r--r--plugins/mod_http_files.lua2
1 files changed, 1 insertions, 1 deletions
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