From 98894bf10f64d2133335f23117234f9f9ebefe0d Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 2 May 2021 15:03:49 +0200 Subject: [PATCH] - fix sendfile for binary data --- TLD_Builder/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLD_Builder/util.py b/TLD_Builder/util.py index 1d485a1..b6bcc24 100644 --- a/TLD_Builder/util.py +++ b/TLD_Builder/util.py @@ -36,7 +36,7 @@ def sendfile(src, dst): cnt = 0 while 1: s = src.read(10000) - if s == "": break + if s == "" or s == b"": break cnt += len(s) dst.write(s) return cnt -- 2.44.0