Mercurial > prosody-hg
diff plugins/mod_http_files.lua @ 8757:861a7d6c12d8
mod_http_files: Correct cache insertion (fixes #1130)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 17 Apr 2018 18:40:57 +0200 |
| parents | 35a02ba83af2 |
| children | 6489d75ff1d6 |
line wrap: on
line diff
--- 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
