From 9efea3f39837a28c8b1ad182c32c868dd3ef2786 Mon Sep 17 00:00:00 2001 From: Karako Date: Tue, 21 Feb 2023 22:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20cookie=20parser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Karako --- plugins/genshin/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/cookies.py b/plugins/genshin/cookies.py index 8d42762..377a3a4 100644 --- a/plugins/genshin/cookies.py +++ b/plugins/genshin/cookies.py @@ -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)