mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 22:30:49 +00:00
fix #912
This commit is contained in:
parent
07c628c7e9
commit
f96245786a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user