From 05647e84ef3a3de7299f82f36b8cbfeeb3f419aa Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 6 Jan 2026 16:40:58 +0300 Subject: [PATCH] zapret-lib: do not error on premature file end --- lua/zapret-lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/zapret-lib.lua b/lua/zapret-lib.lua index debcdae..7bebdb6 100644 --- a/lua/zapret-lib.lua +++ b/lua/zapret-lib.lua @@ -1457,7 +1457,7 @@ function gunzip_file(filename, read_block_size) if err then error("gunzip_file: file read error : "..err) else - error("gunzip_file: premature EOF") + return nil end end local decomp, eof = gunzip_inflate(gz, compressed)