优化Partial Content缓存

This commit is contained in:
GoEdgeLab
2022-03-05 19:31:50 +08:00
parent 4f36514550
commit 4a1d374c1e
4 changed files with 52 additions and 22 deletions

View File

@@ -15,6 +15,7 @@ import (
"sync/atomic"
)
// 其中的每个括号里的内容都在被引用,不能轻易修改
var contentRangeRegexp = regexp.MustCompile(`^bytes (\d+)-(\d+)/(\d+|\*)`)
// 分解Range