1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:10:56 +00:00
路由地址不区分大小写问题
This commit is contained in:
ljyf5593 2014-06-27 11:06:29 +08:00
parent 9c5348f690
commit ac96c2b15e

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