From ce6d7a3ff80f1340eb30c392f64ab6c97fb53f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Borov=C4=8Danin?= Date: Fri, 1 Nov 2024 16:04:48 +0100 Subject: [PATCH] NOISSUE - Use message instead of error in JSON encoding (#77) Signed-off-by: Dusan Borovcanin --- pkg/http/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http/errors.go b/pkg/http/errors.go index ef4e4b4..eec2c25 100644 --- a/pkg/http/errors.go +++ b/pkg/http/errors.go @@ -24,7 +24,7 @@ func (hpe *httpProxyError) Error() string { func (hpe *httpProxyError) MarshalJSON() ([]byte, error) { return json.Marshal(struct { - Error string `json:"error"` + Error string `json:"message"` }{ Error: hpe.err.Error(), })