Changeset

10065:b399dca1273c

net.http.files: Fix cache handling Typo that broke the LRU-ness of the caching
author Kim Alvefur <zash@zash.se>
date Sat, 29 Jun 2019 19:19:38 +0200
parents 10064:1acfd25cd507
children 10066:216ae100c04a
files net/http/files.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http/files.lua	Sat Jun 29 16:54:39 2019 +0200
+++ b/net/http/files.lua	Sat Jun 29 19:19:38 2019 +0200
@@ -94,7 +94,7 @@
 		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 };