f9624578 by astaxie

fix #912

1 parent 07c628c7
...@@ -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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!