From bbef213155b697a60b51d884d71ee2e478d60f3c Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 10 Aug 2013 21:44:19 +0800 Subject: [PATCH] fix #144 --- router.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/router.go b/router.go index d606e8e0..b3384473 100644 --- a/router.go +++ b/router.go @@ -543,10 +543,10 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) method = vc.MethodByName("Render") method.Call(in) } - method = vc.MethodByName("Finish") - method.Call(in) } } + method = vc.MethodByName("Finish") + method.Call(in) method = vc.MethodByName("Destructor") method.Call(in) } @@ -607,9 +607,9 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) method = vc.MethodByName("Render") method.Call(in) } - method = vc.MethodByName("Finish") - method.Call(in) } + method = vc.MethodByName("Finish") + method.Call(in) method = vc.MethodByName("Destructor") method.Call(in) // set find