Commit 5a8a0987a2
Unsigned
Layout: unified · split
app/router.go +2 −1
| @@ -13,9 +13,10 @@ var Host, Path string | |||
| 13 | 13 | ||
| 14 | func Router() { | 14 | func Router() { |
| 15 | parsepath := func(path string) map[int]string { | 15 | parsepath := func(path string) map[int]string { |
| 16 | path = "/" | ||
| 17 | if l := len(CFG.URI); len(path) > l { | 16 | if l := len(CFG.URI); len(path) > l { |
| 18 | path = path[l-1:] | 17 | path = path[l-1:] |
| 18 | } else { | ||
| 19 | path = "/" | ||
| 19 | } | 20 | } |
| 20 | 21 | ||
| 21 | parsedpath := make(map[int]string) | 22 | parsedpath := make(map[int]string) |