Merge dc281f790c88eebdba270e7705f087d50d1a570f into e88fc8927a52b74f55bec0351604a56ac0aa1c51

This commit is contained in:
A1lo 2025-11-21 10:22:21 +01:00 committed by GitHub
commit 5598c54067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
gin.go
View File

@ -12,6 +12,7 @@ import (
"os"
"path"
"regexp"
"slices"
"strings"
"sync"
@ -76,6 +77,7 @@ type RouteInfo struct {
Path string
Handler string
HandlerFunc HandlerFunc
HandlersChain HandlersChain
}
// RoutesInfo defines a RouteInfo slice.
@ -401,6 +403,7 @@ func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo {
Path: path,
Handler: nameOfFunction(handlerFunc),
HandlerFunc: handlerFunc,
HandlersChain: slices.Clone(root.handlers),
})
}
for _, child := range root.children {