fix previer bug
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -158,7 +158,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) | ... | @@ -158,7 +158,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | if (requestPath[n-1] != '/' && route.pattern == requestPath) || | 160 | if (requestPath[n-1] != '/' && route.pattern == requestPath) || |
| 161 | (len(route.pattern) >= n && requestPath[0:n-1] == route.pattern) { | 161 | (len(route.pattern) >= n-1 && requestPath[0:n-1] == route.pattern) { |
| 162 | runrouter = route | 162 | runrouter = route |
| 163 | findrouter = true | 163 | findrouter = true |
| 164 | break | 164 | break | ... | ... |
-
Please register or sign in to post a comment