diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-17 18:40:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-17 18:40:57 +0200 |
commit | c4f68640bb3e57fd9c9570a80528f8cf2c575cad (patch) | |
tree | c947879fd9ae9bdacadcbb26e6cb50128ce9f60e | |
parent | b9a0fc550ea5ae7434098fdbba7d4f141b83cd71 (diff) | |
download | prosody-c4f68640bb3e57fd9c9570a80528f8cf2c575cad.tar.gz prosody-c4f68640bb3e57fd9c9570a80528f8cf2c575cad.zip |
mod_http_files: Correct cache insertion (fixes #1130)
-rw-r--r-- | plugins/mod_http_files.lua | 2 |
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 |