diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 5e21e0e8..5e317be6 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2253,7 +2253,7 @@ class HttpCli(object): hrange = self.headers.get("range") # let's not support 206 with compression - if do_send and not is_compressed and hrange: + if do_send and not is_compressed and hrange and file_sz: try: a, b = hrange.split("=", 1)[1].split("-")