From f20ad0916f3a72e77de076accbc7b4b407468e64 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 4 Jun 2013 19:45:48 +0800 Subject: [PATCH] bug fix --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index fe5373e1..2ef445b4 100644 --- a/router.go +++ b/router.go @@ -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")