mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 21:15:56 +00:00
fix no slash req path
Former-commit-id: 3c3c00788e2481ee142b668d576cab5ff046f089
This commit is contained in:
@@ -168,11 +168,12 @@ func (tr *trie) insert(path, routeName string, handlers context.Handlers) {
|
|||||||
|
|
||||||
func (tr *trie) search(q string, params *context.RequestParams) *trieNode {
|
func (tr *trie) search(q string, params *context.RequestParams) *trieNode {
|
||||||
end := len(q)
|
end := len(q)
|
||||||
n := tr.root
|
|
||||||
if end == 1 && q[0] == pathSepB {
|
if end == 0 || (end == 1 && q[0] == pathSepB) {
|
||||||
return n.getChild(pathSep)
|
return tr.root.getChild(pathSep)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n := tr.root
|
||||||
start := 1
|
start := 1
|
||||||
i := 1
|
i := 1
|
||||||
var paramValues []string
|
var paramValues []string
|
||||||
|
|||||||
Reference in New Issue
Block a user