1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-21 21:20:54 +00:00

fix string

This commit is contained in:
asta.xie 2014-03-29 14:59:55 +08:00
parent 5588bfc35e
commit 9c959fba4d

View File

@ -626,7 +626,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
context.Input.Body()
}
if context.Input.RunController != nil && context.Input.RunMethod {
if context.Input.RunController != nil && context.Input.RunMethod != "" {
findrouter = true
runMethod = context.Input.RunMethod
runrouter = context.Input.RunController