优化Partial Content缓存

This commit is contained in:
刘祥超
2022-03-05 19:31:50 +08:00
parent 10443dfb15
commit 1c0192d773
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