Skip to content

Commit

Permalink
returning error in follow request
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 29, 2010
1 parent 3238016 commit f5f624b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/restfulie/client/feature/follow_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def follow(code = nil)

def execute(flow, request, response, env)
resp = flow.continue(request, response, env)
if !resp.respond_to?(:code)
return resp
end
code = resp.code.to_i
if follow_codes.include?(code)
if code==201 && !resp.body.empty?
Expand Down

0 comments on commit f5f624b

Please sign in to comment.