diff --git a/internal/api/util/response.go b/internal/api/util/response.go index 753eaefb8..afdc578aa 100644 --- a/internal/api/util/response.go +++ b/internal/api/util/response.go @@ -51,8 +51,8 @@ var ( ErrorRateLimited = mustJSON(map[string]string{ "error": "rate limit reached", }) - EmptyJSONObject = mustJSON("{}") - EmptyJSONArray = mustJSON("[]") + EmptyJSONObject = json.RawMessage(`{}`) + EmptyJSONArray = json.RawMessage(`[]`) // write buffer pool. bufPool sync.Pool