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:
parent
db525cba74
commit
719f94b35f
@ -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 no matches to url, throw a not found exception
|
||||||
if w.started == false {
|
if !findrouter {
|
||||||
if h, ok := ErrorMaps["404"]; ok {
|
if h, ok := ErrorMaps["404"]; ok {
|
||||||
h(w, r)
|
h(w, r)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user