We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8275916 + 3f544e7 commit 92c9769Copy full SHA for 92c9769
teslajsonpy/connection.py
@@ -200,9 +200,14 @@ async def __open(
200
201
try:
202
if data:
203
- resp: httpx.Response = await getattr(self.websession, method)(
204
- str(url), json=data, headers=headers, cookies=cookies
205
- )
+ if method == "get":
+ resp: httpx.Response = await getattr(self.websession, method)(
+ str(url), params=data, headers=headers, cookies=cookies
206
+ )
207
+ else:
208
209
+ str(url), json=data, headers=headers, cookies=cookies
210
211
else:
212
resp: httpx.Response = await getattr(self.websession, method)(
213
str(url), headers=headers, cookies=cookies
0 commit comments