This commit is contained in:
IgorTimofeev 2023-05-08 03:10:11 +07:00
parent f1a3507ded
commit c4e1d2a975

View File

@ -220,7 +220,7 @@ local function checkContentLength(url)
_, _, responseData = handle:response()
until responseData or computer.uptime() >= deadline
if responseData and responseData["Content-Length"] then
if responseData and responseData["Content-Length"] and responseData["Content-Length"][1] then
if tonumber(responseData["Content-Length"][1]) <= 10240 then
return handle
else