aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/files.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-06-29 19:19:38 +0200
committerKim Alvefur <zash@zash.se>2019-06-29 19:19:38 +0200
commit6d0fe1858d95548d49de6cfabcea91dc9c90a241 (patch)
treea59589bad391a5a04d7f769d2d6d256acb78c5c2 /net/http/files.lua
parentd2907f3c5d523dedb3daacfaa398efaa7987bdfd (diff)
downloadprosody-6d0fe1858d95548d49de6cfabcea91dc9c90a241.tar.gz
prosody-6d0fe1858d95548d49de6cfabcea91dc9c90a241.zip
net.http.files: Fix cache handling
Typo that broke the LRU-ness of the caching
Diffstat (limited to 'net/http/files.lua')
-rw-r--r--net/http/files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/files.lua b/net/http/files.lua
index 090b15c8..7ff81fc8 100644
--- a/net/http/files.lua
+++ b/net/http/files.lua
@@ -94,7 +94,7 @@ local function serve(opts)
if data and data.etag == etag then
response_headers.content_type = data.content_type;
data = data.data;
- cache:get(orig_path, data);
+ cache:set(orig_path, data);
elseif attr.mode == "directory" and path then
if full_path:sub(-1) ~= "/" then
local dir_path = { is_absolute = true, is_directory = true };