aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-24 22:59:41 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-24 22:59:41 +0100
commit280eda897986aea9e7fe0fa4fb53f9130681b58b (patch)
tree32738193f40c5114889c72612fe0dfbffa325d38 /plugins
parentaebd5479d216cf4e122911fc7b10d2f4b88cc533 (diff)
parent9a76ea7e31d5034607932ac304d89c40bf9c59bf (diff)
downloadprosody-280eda897986aea9e7fe0fa4fb53f9130681b58b.tar.gz
prosody-280eda897986aea9e7fe0fa4fb53f9130681b58b.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-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