mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
fix no slash req path
Former-commit-id: 3c3c00788e2481ee142b668d576cab5ff046f089
This commit is contained in:
parent
a0c8369927
commit
8baaddc892
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user