diff options
Diffstat (limited to 'slack')
-rw-r--r-- | slack/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/util.py b/slack/util.py index 14d18dc..cfe0e03 100644 --- a/slack/util.py +++ b/slack/util.py @@ -56,6 +56,8 @@ def url_encode_if_not_encoded(value: str) -> str: def get_cookies(cookie_config: str) -> str: cookie_pairs = [cookie.split("=", 1) for cookie in cookie_config.split(";")] + if len(cookie_pairs) == 1 and len(cookie_pairs[0]) == 1: + cookie_pairs[0].insert(0, "d") for cookie_pair in cookie_pairs: cookie_pair[0] = cookie_pair[0].strip() cookie_pair[1] = url_encode_if_not_encoded(cookie_pair[1].strip()) |