fix #912
Showing
1 changed file
with
0 additions
and
1 deletions
| ... | @@ -858,7 +858,6 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques | ... | @@ -858,7 +858,6 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques |
| 858 | return | 858 | return |
| 859 | } | 859 | } |
| 860 | if he, ok := err.(middleware.HTTPException); ok { | 860 | if he, ok := err.(middleware.HTTPException); ok { |
| 861 | rw.WriteHeader(he.StatusCode) | ||
| 862 | rw.Write([]byte(he.Description)) | 861 | rw.Write([]byte(he.Description)) |
| 863 | // catch intented errors, only for HTTP 4XX and 5XX | 862 | // catch intented errors, only for HTTP 4XX and 5XX |
| 864 | } else { | 863 | } else { | ... | ... |
-
Please register or sign in to post a comment