Skip to content

Commit

Permalink
fixed issue where response.body was a Net::ReadAdapter instead of a s…
Browse files Browse the repository at this point in the history
…tring
  • Loading branch information
bmuller committed Mar 27, 2013
1 parent 3b6347f commit 3f4a2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httparty/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.underscore(string)
def initialize(request, response, parsed_block, options={})
@request = request
@response = response
@body = response.body || options[:body]
@body = options[:body] || response.body
@parsed_block = parsed_block
@headers = Headers.new(response.to_hash)
end
Expand Down

0 comments on commit 3f4a2db

Please sign in to comment.