# HG changeset patch # User Kim Alvefur # Date 1561828778 -7200 # Node ID b399dca1273c27ee017e33b5f0769cf0383fae9f # Parent 1acfd25cd507fa070048284fbfd4eb250489cb15 net.http.files: Fix cache handling Typo that broke the LRU-ness of the caching diff -r 1acfd25cd507 -r b399dca1273c net/http/files.lua --- 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 };