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

This commit is contained in:
GoEdgeLab
2021-01-11 11:52:13 +08:00
parent 5f34a96b03
commit 1b2fe816a9

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()
}