下载Partial Content时,本地缓存不完整时,只要结束位置为空,就从源站下载

This commit is contained in:
刘祥超
2024-04-21 12:51:44 +08:00
parent 0b09de3378
commit 73e6b04026

View File

@@ -679,7 +679,6 @@ func (this *HTTPRequest) tryPartialReader(storage caches.StorageInterface, key s
// 检查是否已下载完整
if !forcePartialContent &&
len(ranges) > 0 &&
ranges[0][0] == 0 &&
ranges[0][1] < 0 &&
!partialReader.IsCompleted() {
return nil, nil