719f94b3 by astaxie

fix findrouter & template mix

1 parent db525cba
...@@ -399,7 +399,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -399,7 +399,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
399 } 399 }
400 400
401 //if no matches to url, throw a not found exception 401 //if no matches to url, throw a not found exception
402 if w.started == false { 402 if !findrouter {
403 if h, ok := ErrorMaps["404"]; ok { 403 if h, ok := ErrorMaps["404"]; ok {
404 h(w, r) 404 h(w, r)
405 } else { 405 } else {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!