From f96245786ae0e7b454420fb339a66cadb6676917 Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 8 Nov 2014 15:10:47 +0800 Subject: [PATCH] fix #912 --- router.go | 1 - 1 file changed, 1 deletion(-) diff --git a/router.go b/router.go index 1f47c907..79111226 100644 --- a/router.go +++ b/router.go @@ -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 {