mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
缓存默认支持所有请求方法
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user