Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

Commit

Permalink
Fix: convert faraday error responses back to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Stuart committed Dec 17, 2012
1 parent 365bc40 commit ec547aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tentd/api/followings.rb
Expand Up @@ -160,7 +160,8 @@ def action(env)
when 200...300
env.follow_data = res.body
else
return [res.status, res.headers, [res.body]]
body = res.body.kind_of?(String) ? res.body : res.body.to_json
return [res.status, res.headers, [body]]
end
end
env
Expand Down

0 comments on commit ec547aa

Please sign in to comment.