From 0bf8549a6590ef75ed6ff5a10816cb6d9223311e Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 17 Oct 2023 20:29:15 +0300 Subject: [PATCH] Unfortunately, it was a string --- tapeget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapeget.lua b/tapeget.lua index 2f1039c..1ba739b 100644 --- a/tapeget.lua +++ b/tapeget.lua @@ -49,7 +49,7 @@ if not req then end local headers = req.getResponseHeaders() -local length = headers["content-length"] or 1 +local length = tonumber(headers["content-length"]) or 1 if length > tape.getSize() then printError("Tape is smaller than the file you're trying to write")