mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-19 00:40:26 +08:00
缓存默认支持所有请求方法
This commit is contained in:
@@ -78,11 +78,6 @@ func (this *HTTPCacheRef) Init() error {
|
|||||||
for _, method := range this.Methods {
|
for _, method := range this.Methods {
|
||||||
this.methodMap[strings.ToUpper(method)] = true
|
this.methodMap[strings.ToUpper(method)] = true
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
this.methodMap = map[string]bool{
|
|
||||||
"GET": true,
|
|
||||||
"HEAD": true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user