From 1b2fe816a989939b7f8733a539913c8ee073f1f2 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 11 Jan 2021 11:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=93=E5=AD=98=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E5=86=85=E5=AE=B9=E9=95=BF=E5=BA=A6=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_cache_policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/serverconfigs/http_cache_policy.go b/pkg/serverconfigs/http_cache_policy.go index 606fcfa..26088d7 100644 --- a/pkg/serverconfigs/http_cache_policy.go +++ b/pkg/serverconfigs/http_cache_policy.go @@ -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() }