Skip to content

Commit

Permalink
add missing Content-Type header
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Feb 11, 2024
1 parent 5de1396 commit 047d38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anchorpy/utils/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ async def _get_multiple_accounts_core(
resp = await connection._provider.session.post(
connection._provider.endpoint_uri,
content=batch_to_json(rpc_requests),
headers={"content-encoding": "gzip"},
headers={"content-encoding": "gzip", "Content-type": "application/json"},
)
parsed = cast(
list[Union[RPCError, GetMultipleAccountsResp]],
batch_from_json(resp.text, [GetMultipleAccounts for _ in rpc_requests]),
batch_from_json(resp.text, [GetMultipleAccountsResp for _ in rpc_requests]),
)
result: list[Optional[_MultipleAccountsItem]] = []
idx = 0
Expand Down

0 comments on commit 047d38d

Please sign in to comment.