提交 e555e455 编写于 作者: Y Your Name

fix match uri

上级 2ae81dbf
......@@ -54,7 +54,7 @@ func MatchURI(requestPath string, matchURI string) (bool, string, []string) {
}
if string(matchURI[len(matchURI)-1]) == "/" {
postfix = true
matchURI = matchURI[:len(requestPath)-1]
matchURI = matchURI[:len(matchURI)-1]
}
requestArray := strings.Split(requestPath, "/")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册