1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 12:40:49 +00:00

Merge pull request #660 from ljyf5593/patch-1

beego: fix #657
This commit is contained in:
astaxie 2014-06-30 12:06:24 +08:00
commit c83c17d917

View File

@ -599,7 +599,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
if !findrouter {
if t, ok := p.routers[r.Method]; ok {
runObject, p := t.Match(r.URL.Path)
runObject, p := t.Match(strings.ToLower(r.URL.Path))
if r, ok := runObject.(*controllerInfo); ok {
routerInfo = r
findrouter = true