mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:00:54 +00:00
bug fix
This commit is contained in:
parent
65041aae71
commit
f20ad0916f
@ -431,7 +431,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
//Invoke the request handler
|
//Invoke the request handler
|
||||||
vc := reflect.New(runrouter.controllerType)
|
vc := reflect.New(runrouter.controllerType)
|
||||||
|
|
||||||
StructMap(vc.Elem(), &r)
|
StructMap(vc.Elem(), r)
|
||||||
|
|
||||||
//call the controller init function
|
//call the controller init function
|
||||||
init := vc.MethodByName("Init")
|
init := vc.MethodByName("Init")
|
||||||
|
Loading…
Reference in New Issue
Block a user