Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

fix: Failed to get bdstoken #214

Merged
merged 1 commit into from Dec 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bcloud/auth.py
Expand Up @@ -276,7 +276,7 @@ def parse_bdstoken(content):
@return 返回bdstoken
'''
bdstoken = ''
bds_re = re.compile('BDSTOKEN\s*=\s*"([^"]+)"')
bds_re = re.compile('"bdstoken"\s*:\s*"([^"]+)"', re.IGNORECASE)
bds_match = bds_re.search(content)
if bds_match:
bdstoken = bds_match.group(1)
Expand Down