From 3de89158388b589f8d2fd7c20786cb25b0164471 Mon Sep 17 00:00:00 2001 From: IgorTimofeev Date: Mon, 8 May 2023 23:02:44 +0700 Subject: [PATCH] :( --- Applications/App Market.app/Main.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Applications/App Market.app/Main.lua b/Applications/App Market.app/Main.lua index 7145c3ff..cd4d3969 100644 --- a/Applications/App Market.app/Main.lua +++ b/Applications/App Market.app/Main.lua @@ -220,8 +220,10 @@ local function checkContentLength(url) _, _, responseData = handle:response() until responseData or computer.uptime() >= deadline - if responseData and responseData["Content-Length"] and responseData["Content-Length"][1] then - if tonumber(responseData["Content-Length"][1]) <= 10240 then + if responseData and responseData["Content-Length"] then + local contentLength = tonumber(responseData["Content-Length"][1]) + + if contentLength and contentLength <= 10240 then return handle else handle:close()