diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 3e80089..e0df044 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1453,7 +1453,11 @@ class SlackRequest(object): if ":" in self.token: token, cookie = self.token.split(":", 1) self.token = token - self.cookies["d"] = cookie + if cookie.startswith("d="): + for name, value in [c.split("=") for c in cookie.split(";")]: + self.cookies[name] = value + else: + self.cookies["d"] = cookie self.callback = callback self.domain = "api.slack.com" self.reset() |