Skip to content

Commit 97f3fec

Browse files
author
y86993
authored
Add Header
Add a Header to the Subgraph API call.
1 parent fde13d0 commit 97f3fec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/get-tokens.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const fetchTokensBatch = async (id: string): Promise<Item[]> => {
3939
{
4040
method: 'POST',
4141
body: JSON.stringify(subgraphQuery),
42+
headers: {
43+
'Content-Type': 'application/json',
44+
},
4245
},
4346
)
4447

0 commit comments

Comments
 (0)