优化Partial Content缓存

This commit is contained in:
刘祥超
2022-11-19 21:20:53 +08:00
parent 7a4b89d2fb
commit afc8f7b703
9 changed files with 69 additions and 40 deletions

View File

@@ -67,3 +67,10 @@ func TestRange_ComposeContentRangeHeader(t *testing.T) {
var r = rangeutils.NewRange(1, 100)
t.Log(r.ComposeContentRangeHeader("1000"))
}
func TestRange_SetLength(t *testing.T) {
var r = rangeutils.NewRange(1, 100)
t.Log(r)
t.Log(r.SetLength(1024))
}