fix #416
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -580,7 +580,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) | ... | @@ -580,7 +580,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) |
| 580 | http.Redirect(w, r, requestPath+"/", 301) | 580 | http.Redirect(w, r, requestPath+"/", 301) |
| 581 | goto Admin | 581 | goto Admin |
| 582 | } | 582 | } |
| 583 | if n >= 1 && requestPath[:n-1] == route.pattern { | 583 | if requestPath[n-1] == '/' && n >= 2 && requestPath[:n-2] == route.pattern { |
| 584 | runMethod = p.getRunMethod(r.Method, context, route) | 584 | runMethod = p.getRunMethod(r.Method, context, route) |
| 585 | if runMethod != "" { | 585 | if runMethod != "" { |
| 586 | runrouter = route.controllerType | 586 | runrouter = route.controllerType | ... | ... |
-
Please register or sign in to post a comment