mirror of
https://github.com/9001/copyparty.git
synced 2026-11-25 12:52:41 +00:00
fix range-request on empty files
This commit is contained in:
1 parent
5b6194d131
commit
cce57b700b
1 file changed
+1
-1
@@ -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("-")
|
||||
|
||||
|
||||
Reference in new issue
Block a user