Skip to content

Commit

Permalink
fixing bug about response.body == response (https://github.com/archil…
Browse files Browse the repository at this point in the history
  • Loading branch information
romand committed Jun 14, 2012
1 parent aeb574f commit 587e3ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/iron_core/client.rb
Expand Up @@ -140,8 +140,8 @@ def parse_response(response, parse_json = true)

raise IronCore::IronResponseError.new(response) if response.code != 200

return response.body unless parse_json
JSON.parse(response.body)
return response.to_s unless parse_json
JSON.parse(response.to_s)
end
end
end

0 comments on commit 587e3ad

Please sign in to comment.