Skip to content

Commit c9f61e6

Browse files
committed
Force form content_type
1 parent 9c66e4f commit c9f61e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

airos/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ async def login(self) -> None:
276276

277277
try: # Alternative URL
278278
await self._request_json(
279-
"POST", self._login_urls["v6_alternative"], form_data=payload
279+
"POST",
280+
self._login_urls["v6_alternative"],
281+
form_data=payload,
282+
ct_form=True,
280283
)
281284
except AirOSConnectionSetupError as err:
282285
raise AirOSConnectionSetupError(

0 commit comments

Comments
 (0)