diff --git a/controllers/error.go b/controllers/error.go index 0dd243e..a78ab2d 100644 --- a/controllers/error.go +++ b/controllers/error.go @@ -11,6 +11,10 @@ type Error struct { } func (e *Error) Get(err error, c echo.Context) { + if c.Response().Committed { + return + } + code := http.StatusInternalServerError if he, ok := err.(*echo.HTTPError); ok { code = he.Code