Skip to content

Commit

Permalink
fix: 404 and similar results would be written to cache (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustPlayerDE authored Dec 27, 2023
1 parent 41c9249 commit 71f65d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pixelui/core/cl_images.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71f65d5

Please sign in to comment.