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

This commit is contained in:
刘祥超
2021-12-07 10:48:11 +08:00
parent 01c7f2b714
commit 50893b34c6

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