mirror of
https://github.com/kataras/iris.git
synced 2025-12-27 23:07:03 +00:00
move sessions and websocket examples, gofmt, fix misspells and experimental optimizations 🍐
Former-commit-id: cae4f94bbd404d26ab13dade02b52f81feaddf24
This commit is contained in:
@@ -301,6 +301,11 @@ func (nodes Nodes) findChild(path string, params []string) (*node, []string) {
|
||||
if n.rootWildcard {
|
||||
// println("return from n.rootWildcard")
|
||||
// single root wildcard
|
||||
if len(path) < 2 {
|
||||
// do not remove that, it seems useless but it's not,
|
||||
// we had an error while production, this fixes that.
|
||||
path = "/" + path
|
||||
}
|
||||
return n, append(params, path[1:])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user