1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:10:54 +00:00
This commit is contained in:
Lunny Xiao 2013-06-04 19:45:48 +08:00
parent 65041aae71
commit f20ad0916f

View File

@ -431,7 +431,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
//Invoke the request handler
vc := reflect.New(runrouter.controllerType)
StructMap(vc.Elem(), &r)
StructMap(vc.Elem(), r)
//call the controller init function
init := vc.MethodByName("Init")