Skip to content

Commit

Permalink
Merge pull request #20 from isabanin/master
Browse files Browse the repository at this point in the history
Response body is not decoded correctly
  • Loading branch information
robertsulway committed Dec 3, 2013
2 parents e5482b9 + bb0307a commit 3359524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/base/net_fix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def request(req, body = nil, &block) # :yield: +response+
req.exec @socket, @curr_http_version, edit_path(req.path), send_only
begin
res = HTTPResponse.read_new(@socket)
res.decode_content = req.decode_content if RUBY_VERSION > '2.0'
# if we expected 100-continue then send a body
if res.is_a?(HTTPContinue) && send_only && req['content-length'].to_i > 0
req.exec @socket, @curr_http_version, edit_path(req.path), :body
Expand Down

3 comments on commit 3359524

@flexera-ci
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RS-COMPLIANCE: COMPLIANCE-AUTHORIZATION-PASS Build: #55888(2013-12-03_18-47-12), repo: right_http_connection, branch/tag: master, sha: 3359524, status: PASS, reason: Master/release branch and pusher is on the whitelist.

@flexera-ci
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RS-COMPLIANCE: COMPLIANCE-COMMITMESSAGE-PASS Build: #55888(2013-12-03_18-47-12), repo: right_http_connection, branch/tag: master, sha: 3359524, status: PASS, reason: Was a merge commit

@robertsulway
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acu142496
COMPLIANCE-COMMITMESSAGE-FIXED

Please sign in to comment.