mirror of
https://github.com/9001/copyparty.git
synced 2026-03-12 11:13:56 +10:00
fix range-request on empty files
This commit is contained in:
@@ -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