From 719f94b35ff3c161e8a5266902d6e638a3484f15 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 13 May 2013 16:31:17 +0800 Subject: [PATCH] fix findrouter & template mix --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 9ba86fca..97de5317 100644 --- a/router.go +++ b/router.go @@ -399,7 +399,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) } //if no matches to url, throw a not found exception - if w.started == false { + if !findrouter { if h, ok := ErrorMaps["404"]; ok { h(w, r) } else {