mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10:54 +00:00
parent
9c5348f690
commit
ac96c2b15e
@ -599,7 +599,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
|
|
||||||
if !findrouter {
|
if !findrouter {
|
||||||
if t, ok := p.routers[r.Method]; ok {
|
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 {
|
if r, ok := runObject.(*controllerInfo); ok {
|
||||||
routerInfo = r
|
routerInfo = r
|
||||||
findrouter = true
|
findrouter = true
|
||||||
|
Loading…
Reference in New Issue
Block a user