Merge pull request #307 from left-blank/patch-1

sso_cookies.py: Parse according to RFC 6265.
@left-blank Thank you 🙏
This commit is contained in:
Lorenzo Di Fuccia 2022-01-21 17:48:00 +01:00 • committed by GitHub
commit 37ba660325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,8 +15,7 @@ import safaribooks
def transform(cookies_string):
cookies = {}
for cookie in cookies_string.split(";"):
cookie = cookie.strip()
for cookie in cookies_string.split("; "):
key, value = cookie.split("=", 1)
cookies[key] = value