Skip to content

Commit

Permalink
Improve HTTPClient versions compatibility.
Browse files Browse the repository at this point in the history
httpclient changed Message#body method as an alias of Message#content
from 2.2.0. This change keeps both httpclient 2.2.0 and < 2.2.0
compatibility.
  • Loading branch information
Hiroshi Nakamura committed Apr 19, 2011
1 parent 337740f commit ca08aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webmock/http_lib_adapters/httpclient.rb
Expand Up @@ -119,7 +119,7 @@ def build_request_signature(req)
request_signature = WebMock::RequestSignature.new(
req.header.request_method.downcase.to_sym,
uri.to_s,
:body => req.body.content,
:body => req.content,
:headers => headers
)
end
Expand Down

0 comments on commit ca08aa3

Please sign in to comment.