From 50893b34c6fc8c613a4349760a422b16159a4f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 7 Dec 2021 10:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E9=BB=98=E8=AE=A4=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=89=80=E6=9C=89=E8=AF=B7=E6=B1=82=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_cache_ref.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/serverconfigs/http_cache_ref.go b/pkg/serverconfigs/http_cache_ref.go index 8e68f63..ba37940 100644 --- a/pkg/serverconfigs/http_cache_ref.go +++ b/pkg/serverconfigs/http_cache_ref.go @@ -78,11 +78,6 @@ func (this *HTTPCacheRef) Init() error { for _, method := range this.Methods { this.methodMap[strings.ToUpper(method)] = true } - } else { - this.methodMap = map[string]bool{ - "GET": true, - "HEAD": true, - } } return nil