Merge pull request #140 from rhcarvalho/patch-3

Fix ValueError when line has more than one '='.
This commit is contained in:
Lance Stout 2012-01-23 10:53:19 -08:00
commit f06589c913

View file

@ -42,7 +42,7 @@ class X_GOOGLE_TOKEN(Mechanism):
resp = conn.getresponse().read()
data = {}
for line in resp.split():
k, v = line.split(b'=')
k, v = line.split(b'=', 1)
data[k] = v
except Exception as e:
raise e