mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
remove ANY form MethodsSet to avoid conflict
This commit is contained in:
parent
bb822599b9
commit
9a2aeef0d0
1 changed files with 0 additions and 2 deletions
|
|
@ -916,7 +916,6 @@ var (
|
||||||
MethodConnect = "CONNECT"
|
MethodConnect = "CONNECT"
|
||||||
MethodOptions = "OPTIONS"
|
MethodOptions = "OPTIONS"
|
||||||
MethodTrace = "TRACE"
|
MethodTrace = "TRACE"
|
||||||
MethodAny = "ANY"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var MethodsSet = map[string]struct{}{
|
var MethodsSet = map[string]struct{}{
|
||||||
|
|
@ -929,7 +928,6 @@ var MethodsSet = map[string]struct{}{
|
||||||
MethodConnect: {},
|
MethodConnect: {},
|
||||||
MethodOptions: {},
|
MethodOptions: {},
|
||||||
MethodTrace: {},
|
MethodTrace: {},
|
||||||
MethodAny: {},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleFunc 注册一个或多个 HTTP 方法的路由
|
// HandleFunc 注册一个或多个 HTTP 方法的路由
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue