1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 09:40:19 +00:00

when call abort show the err:http: multiple response.WriteHeader calls

This commit is contained in:
astaxie
2013-12-18 20:53:23 +08:00
parent 9edf3143e1
commit e01fbd497c
2 changed files with 6 additions and 5 deletions

View File

@ -406,6 +406,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
if ErrorsShow {
handler := p.getErrorHandler(fmt.Sprint(err))
handler(rw, r)
return
} else {
Critical("Handler crashed with error", err)
for i := 1; ; i++ {