mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:50:56 +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
|
return
|
||||||
}
|
}
|
||||||
if he, ok := err.(middleware.HTTPException); ok {
|
if he, ok := err.(middleware.HTTPException); ok {
|
||||||
rw.WriteHeader(he.StatusCode)
|
|
||||||
rw.Write([]byte(he.Description))
|
rw.Write([]byte(he.Description))
|
||||||
// catch intented errors, only for HTTP 4XX and 5XX
|
// catch intented errors, only for HTTP 4XX and 5XX
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user