缓存默认支持所有请求方法

This commit is contained in:
GoEdgeLab
2021-12-07 10:48:11 +08:00
parent eea1969098
commit 54794d6a53

View File

@@ -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