mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:30:50 +00:00
fix bug
This commit is contained in:
parent
8a99591298
commit
5ce009a2dc
@ -147,7 +147,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
||||
for _, route := range p.fixrouters {
|
||||
n := len(requestPath)
|
||||
if (requestPath[n-1] != '/' && route.pattern == requestPath) ||
|
||||
(len(route.pattern) >= n && requestPath[0:n-1] == route.pattern) {
|
||||
(len(route.pattern) >= n && requestPath == route.pattern) {
|
||||
runrouter = route
|
||||
findrouter = true
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user