mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 19:30:25 +08:00
修复缓存策略内容长度解析错误
This commit is contained in:
@@ -33,7 +33,7 @@ func (this *HTTPCachePolicy) Init() error {
|
|||||||
this.capacity = this.Capacity.Bytes()
|
this.capacity = this.Capacity.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
if this.maxSize > 0 {
|
if this.MaxSize != nil {
|
||||||
this.maxSize = this.MaxSize.Bytes()
|
this.maxSize = this.MaxSize.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user