Properly parse response body in token delete

This commit is contained in:
Brian Cain 2015-09-15 11:29:47 -07:00
parent 2ea08f95a5
commit 7fb07a9a69

View file

@ -27,7 +27,7 @@ class Auth
conn = Http.get_conn_with_auth(verbose, url, user, password)
response = conn.delete "/token/#{token}"
res_body = JSON.parse(response)
res_body = JSON.parse(response.body)
if res_body["ok"]
puts res_body
else