Skip to content

Commit

Permalink
Fix storing normalized cookie with aiohttp 3.10 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl authored Aug 17, 2024
1 parent 93df39e commit f8d7f49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pybravia/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ async def send_req(
cookies = response.headers.getall("set-cookie", None)
if cookies:
normalized_cookies = normalize_cookies(cookies)
self._session.cookie_jar.update_cookies(normalized_cookies)
self._session.cookie_jar.update_cookies(
cookies=normalized_cookies, response_url=response.url
)

if response.status == 200:
result = await response.json() if json else True
Expand Down

0 comments on commit f8d7f49

Please sign in to comment.