🐛 Fix cookie parser

Signed-off-by: Karako <karakohear@gmail.com>
This commit is contained in:
Karako 2023-02-21 22:19:28 +08:00
parent ead18d5ee0
commit 9efea3f398
No known key found for this signature in database
GPG Key ID: 5920831B0095D4A0

View File

@ -206,7 +206,7 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation):
ArkoWrapper(message.text.split(";"))
.filter(lambda x: x != "")
.map(lambda x: x.strip())
.map(lambda x: ((y := x.split("="))[0], y[1]))
.map(lambda x: ((y := x.split("=", 1))[0], y[1]))
)
cookie = {x[0]: x[1] for x in wrapped}
cookies = self.parse_cookie(cookie)