mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 11:20:27 +08:00
下载Partial Content时,本地缓存不完整时,只要结束位置为空,就从源站下载
This commit is contained in:
@@ -679,7 +679,6 @@ func (this *HTTPRequest) tryPartialReader(storage caches.StorageInterface, key s
|
|||||||
// 检查是否已下载完整
|
// 检查是否已下载完整
|
||||||
if !forcePartialContent &&
|
if !forcePartialContent &&
|
||||||
len(ranges) > 0 &&
|
len(ranges) > 0 &&
|
||||||
ranges[0][0] == 0 &&
|
|
||||||
ranges[0][1] < 0 &&
|
ranges[0][1] < 0 &&
|
||||||
!partialReader.IsCompleted() {
|
!partialReader.IsCompleted() {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user