forked from hkc/cc-stuff
1
0
Fork 0

This commit is sponsored by Keeps

This commit is contained in:
Casey 2023-10-17 20:23:20 +03:00
parent 58b63b4cde
commit ec5d0d14f8
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 0 deletions

View File

@ -56,11 +56,13 @@ local headers = req.getResponseHeaders()
local length = headers["content-length"] or 1
local _, y = term.getCursorPos()
local written = 0
while true do
local chunk = req.read(256)
if not chunk then
break
end
written = written + #chunk
tape.write(chunk)
term.setCursorPos(1, y)
term.clearLine()