From d1a1dacaffecdbfce86d1c47d8be6edbfa8419ad Mon Sep 17 00:00:00 2001 From: kataras Date: Mon, 20 Jun 2022 15:31:17 +0300 Subject: [PATCH] minor --- context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index a5f87f94..64e7b7e8 100644 --- a/context/context.go +++ b/context/context.go @@ -841,7 +841,7 @@ func (ctx *Context) StopWithPlainError(statusCode int, err error) { // it will also fire the specified error code handler. func (ctx *Context) StopWithJSON(statusCode int, jsonObject interface{}) error { ctx.StopWithStatus(statusCode) - return ctx.writeJSON(jsonObject, nil) // do not modify - see errors.DefaultContextErrorHandler. + return ctx.writeJSON(jsonObject, &DefaultJSONOptions) // do not modify - see errors.DefaultContextErrorHandler. } // StopWithProblem stops the handlers chain, writes the status code