mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 23:02:34 +00:00
[http] Fix #3215
This commit is contained in:
parent
a44ca5a470
commit
ce0593ef61
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ class HttpFD(FileDownloader):
|
|||
or content_len < range_end)
|
||||
if accept_content_len:
|
||||
ctx.content_len = content_len
|
||||
ctx.data_len = min(content_len, req_end or content_len) - (req_start or 0)
|
||||
if content_len or req_end:
|
||||
ctx.data_len = min(content_len or req_end, req_end or content_len) - (req_start or 0)
|
||||
return
|
||||
# Content-Range is either not present or invalid. Assuming remote webserver is
|
||||
# trying to send the whole file, resume is not possible, so wiping the local file
|
||||
|
|
Loading…
Reference in a new issue