1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 08:20:55 +00:00

fix findrouter & template mix

This commit is contained in:
astaxie 2013-05-13 16:31:17 +08:00
parent db525cba74
commit 719f94b35f

View File

@ -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 {