mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
:(
This commit is contained in:
parent
c4e1d2a975
commit
3de8915838
@ -220,8 +220,10 @@ local function checkContentLength(url)
|
|||||||
_, _, responseData = handle:response()
|
_, _, responseData = handle:response()
|
||||||
until responseData or computer.uptime() >= deadline
|
until responseData or computer.uptime() >= deadline
|
||||||
|
|
||||||
if responseData and responseData["Content-Length"] and responseData["Content-Length"][1] then
|
if responseData and responseData["Content-Length"] then
|
||||||
if tonumber(responseData["Content-Length"][1]) <= 10240 then
|
local contentLength = tonumber(responseData["Content-Length"][1])
|
||||||
|
|
||||||
|
if contentLength and contentLength <= 10240 then
|
||||||
return handle
|
return handle
|
||||||
else
|
else
|
||||||
handle:close()
|
handle:close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user