Commit f20ad091 authored by Lunny Xiao's avatar Lunny Xiao

bug fix

parent 65041aae
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment