fix findrouter & template mix
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 { | ... | ... |
-
Please register or sign in to post a comment