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

This commit is contained in:
GoEdgeLab
2024-04-21 12:51:44 +08:00
parent 5c1f9e23eb
commit 5c97d0d3cf

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