优化Partial Content缓存

This commit is contained in:
刘祥超
2022-03-04 22:42:03 +08:00
parent 21c80aea78
commit f34ad57e12
8 changed files with 104 additions and 29 deletions

View File

@@ -334,8 +334,8 @@ func (this *FileReader) ReadBodyRange(buf []byte, start int64, end int64, callba
}
// ContainsRange 是否包含某些区间内容
func (this *FileReader) ContainsRange(r rangeutils.Range) bool {
return true
func (this *FileReader) ContainsRange(r rangeutils.Range) (r2 rangeutils.Range, ok bool) {
return r, true
}
func (this *FileReader) Close() error {