mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
fix range-request on empty files
This commit is contained in:
parent
5b6194d131
commit
cce57b700b
|
@ -2253,7 +2253,7 @@ class HttpCli(object):
|
||||||
hrange = self.headers.get("range")
|
hrange = self.headers.get("range")
|
||||||
|
|
||||||
# let's not support 206 with compression
|
# 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:
|
try:
|
||||||
a, b = hrange.split("=", 1)[1].split("-")
|
a, b = hrange.split("=", 1)[1].split("-")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue