mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fix ValueError when line has more than one '='.
This commit is contained in:
parent
25f87607aa
commit
2735b680b9
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class X_GOOGLE_TOKEN(Mechanism):
|
||||||
resp = conn.getresponse().read()
|
resp = conn.getresponse().read()
|
||||||
data = {}
|
data = {}
|
||||||
for line in resp.split():
|
for line in resp.split():
|
||||||
k, v = line.split(b'=')
|
k, v = line.split(b'=', 1)
|
||||||
data[k] = v
|
data[k] = v
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
|
|
Loading…
Reference in a new issue