Permalink
Browse files

Response body is now output and response is returned for 200,201 and …

…202 responses.
  • Loading branch information...
1 parent c6e5fc3 commit 8be634c0e713f54d7611ee97d4a5829b96b03527 @FiXato committed Aug 20, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rest_client.rb
View
@@ -170,7 +170,8 @@ def setup_credentials(req)
def process_result(res)
puts "HTTP status code: #{res.code}\n"
if %w(200 201 202).include? res.code
- decode res['content-encoding'], res.body
+ puts decode(res['content-encoding'], res.body)
+ res
elsif %w(301 302 303).include? res.code
url = res.header['Location']

0 comments on commit 8be634c

Please sign in to comment.