From d0683c87c47a83172125f19b536516cec665e18e Mon Sep 17 00:00:00 2001 From: "Justin K." Date: Wed, 27 Dec 2023 21:26:40 +0100 Subject: [PATCH] fix: 404 and similar results would be written to cache --- lua/pixelui/core/cl_images.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/pixelui/core/cl_images.lua b/lua/pixelui/core/cl_images.lua index 2441139..90dfece 100644 --- a/lua/pixelui/core/cl_images.lua +++ b/lua/pixelui/core/cl_images.lua @@ -38,7 +38,7 @@ local function processQueue() http.Fetch((useProxy and ("https://proxy.duckduckgo.com/iu/?u=" .. url)) or url, function(body, len, headers, code) - if len > 2097152 then + if len > 2097152 or code ~= 200 then materials[filePath] = Material("nil") else local writeFilePath = filePath