mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
🐛 Fix cookie parser
Signed-off-by: Karako <karakohear@gmail.com>
This commit is contained in:
parent
ead18d5ee0
commit
9efea3f398
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user