remove ANY form MethodsSet to avoid conflict

This commit is contained in:
wjqserver 2025-06-11 11:23:15 +08:00
parent bb822599b9
commit 9a2aeef0d0

View file

@ -916,7 +916,6 @@ var (
MethodConnect = "CONNECT"
MethodOptions = "OPTIONS"
MethodTrace = "TRACE"
MethodAny = "ANY"
)
var MethodsSet = map[string]struct{}{
@ -929,7 +928,6 @@ var MethodsSet = map[string]struct{}{
MethodConnect: {},
MethodOptions: {},
MethodTrace: {},
MethodAny: {},
}
// HandleFunc 注册一个或多个 HTTP 方法的路由