summaryrefslogtreecommitdiff
path: root/internal/api/util/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/util/response.go')
-rw-r--r--internal/api/util/response.go4
1 files changed, 2 insertions, 2 deletions
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