Skip to content
This repository

Improve HTTPClient versions compatibility. #87

Closed
wants to merge 1 commit into from

1 participant

Hiroshi Nakamura
Hiroshi Nakamura
nahi commented April 19, 2011

Thanks for supporting HTTPClient.

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.

Sorry for this trouble (my bad), but I want this change to be pulled.

Hiroshi Nakamura 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.
ca08aa3
Hiroshi Nakamura
nahi commented April 19, 2011

Oops. Just after submitting this I found another person already submitted a pull request: #85

It's just the same. I close this as 'duplicate'.

Hiroshi Nakamura nahi closed this April 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 19, 2011
Hiroshi Nakamura 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.
ca08aa3
This page is out of date. Refresh to see the latest.
2  lib/webmock/http_lib_adapters/httpclient.rb
@@ -119,7 +119,7 @@ def build_request_signature(req)
119 119
     request_signature = WebMock::RequestSignature.new(
120 120
       req.header.request_method.downcase.to_sym,
121 121
       uri.to_s,
122  
-      :body => req.body.content,
  122
+      :body => req.content,
123 123
       :headers => headers
124 124
     )
125 125
   end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.