From 07707a5d82a97e19483c2101660a2e174d76979d Mon Sep 17 00:00:00 2001 From: feruz Date: Sun, 11 Aug 2024 09:10:35 +0300 Subject: [PATCH] add header --- src/common/api/hive-engine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/api/hive-engine.ts b/src/common/api/hive-engine.ts index 859ecda0fc5..fede73d58aa 100644 --- a/src/common/api/hive-engine.ts +++ b/src/common/api/hive-engine.ts @@ -60,7 +60,7 @@ export const getTokenBalances = (account: string): Promise => { return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json" } + headers: { "Content-type": "application/json", "Accept-Encoding": "*" } }) .then((r) => r.data.result) .catch((e) => { @@ -84,7 +84,7 @@ const getTokens = (tokens: string[]): Promise => { return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json" } + headers: { "Content-type": "application/json", "Accept-Encoding": "*" } }) .then((r) => r.data.result) .catch((e) => { @@ -171,7 +171,7 @@ export const getMetrics: any = async (symbol?: any, account?: any) => { // return result; return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json" } + headers: { "Content-type": "application/json", "Accept-Encoding": "*" } }) .then((r) => r.data.result) .catch((e) => {