Skip to content

Commit

Permalink
fix for cookie partition
Browse files Browse the repository at this point in the history
  • Loading branch information
schwark committed Jul 6, 2024
1 parent 45361ef commit 3fa9c92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion unifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def _make_request(self, step, **kwargs):
r = web.request(**request_params)
if(r.status_code >= 200 and r.status_code <= 400 and 'set-cookie' in r.headers):
cookies = SimpleCookie()
cookies.load(r.headers['Set-Cookie'])
cookie_text = r.headers['set-cookie']
cookie_text = cookie_text.replace(' partitioned','')
cookies.load(cookie_text)
for key, value in cookies.items():
self.cookies[key] = value.value
return r
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.7
1.2.8

0 comments on commit 3fa9c92

Please sign in to comment.