From c6cf6d4655d1ab050787ce9fc8125d00dcab0724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 1 Oct 2016 16:52:35 +0200 Subject: [PATCH] fix(api): fixed issue with api content-type in api success messages, fixes #6160 --- pkg/api/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/common.go b/pkg/api/common.go index 82eed0db5fe..bd1c8be477d 100644 --- a/pkg/api/common.go +++ b/pkg/api/common.go @@ -79,7 +79,7 @@ func Json(status int, body interface{}) *NormalResponse { func ApiSuccess(message string) *NormalResponse { resp := make(map[string]interface{}) resp["message"] = message - return Respond(200, resp) + return Json(200, resp) } func ApiError(status int, message string, err error) *NormalResponse {