Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: convert faraday error responses back to json

  • Loading branch information...
commit ec547aa94f5112c67a64b362c36f4e1491b08be2 1 parent 365bc40
Jesse Stuart jvatic authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/tentd/api/followings.rb
3  lib/tentd/api/followings.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.