Skip to content

Commit 081283a

Browse files
committed
remove potential json key conflict in passing arguments
1 parent ce32e85 commit 081283a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python_graphql_client/graphql_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ async def execute_async(
7171
async with aiohttp.ClientSession() as session:
7272
async with session.post(
7373
self.endpoint,
74-
json=request_body,
75-
**{**self.options, **kwargs, "headers": {**self.headers, **headers}},
74+
**{
75+
**self.options,
76+
**kwargs,
77+
"headers": {**self.headers, **headers},
78+
"json": request_body,
79+
},
7680
) as response:
7781
return await response.json()
7882

0 commit comments

Comments
 (0)