This commit is sponsored by Keeps
This commit is contained in:
parent
58b63b4cde
commit
ec5d0d14f8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue