Permalink
Browse files

Improve HTTPClient versions compatibility.

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...
1 parent 337740f commit ca08aa3a0512c7d9a861d2e98cc980a6d2b6fa95 @nahi committed Apr 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/webmock/http_lib_adapters/httpclient.rb
@@ -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

0 comments on commit ca08aa3

Please sign in to comment.