Skip to content

Commit

Permalink
add header
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Aug 11, 2024
1 parent 2a1f6d1 commit 07707a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/api/hive-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getTokenBalances = (account: string): Promise<TokenBalance[]> => {

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) => {
Expand All @@ -84,7 +84,7 @@ const getTokens = (tokens: string[]): Promise<Token[]> => {

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) => {
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 07707a5

Please sign in to comment.