1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:10:54 +00:00
This commit is contained in:
astaxie 2014-11-08 15:10:47 +08:00
parent 07c628c7e9
commit f96245786a

View File

@ -858,7 +858,6 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques
return
}
if he, ok := err.(middleware.HTTPException); ok {
rw.WriteHeader(he.StatusCode)
rw.Write([]byte(he.Description))
// catch intented errors, only for HTTP 4XX and 5XX
} else {