修复缓存策略内容长度解析错误

This commit is contained in:
刘祥超
2021-01-11 11:52:13 +08:00
parent 275b3c99db
commit c3b0f3cd00

View File

@@ -33,7 +33,7 @@ func (this *HTTPCachePolicy) Init() error {
this.capacity = this.Capacity.Bytes()
}
if this.maxSize > 0 {
if this.MaxSize != nil {
this.maxSize = this.MaxSize.Bytes()
}