Merge pull request #660 from ljyf5593/patch-1
beego: fix #657
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -599,7 +599,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) | ... | @@ -599,7 +599,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) |
| 599 | 599 | ||
| 600 | if !findrouter { | 600 | if !findrouter { |
| 601 | if t, ok := p.routers[r.Method]; ok { | 601 | if t, ok := p.routers[r.Method]; ok { |
| 602 | runObject, p := t.Match(r.URL.Path) | 602 | runObject, p := t.Match(strings.ToLower(r.URL.Path)) |
| 603 | if r, ok := runObject.(*controllerInfo); ok { | 603 | if r, ok := runObject.(*controllerInfo); ok { |
| 604 | routerInfo = r | 604 | routerInfo = r |
| 605 | findrouter = true | 605 | findrouter = true | ... | ... |
-
Please register or sign in to post a comment