diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-20 05:57:10 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-20 05:57:10 +0000 |
commit | f0002bd5a21bf091dfd0482fb7b0147b7d3703fb (patch) | |
tree | 3e4ce836227963e90575ff452cb6b8c2a0a29d35 /lib | |
parent | 2c97d690521f3a4d06cd0a64ef705018557abd8c (diff) | |
download | ruby-f0002bd5a21bf091dfd0482fb7b0147b7d3703fb.tar.gz |
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: added test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index d29a2d81cb..5ccf653d37 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1439,11 +1439,11 @@ module Net #:nodoc: res.uri = req.uri - res.reading_body(@socket, req.response_body_permitted?) { - yield res if block_given? - } res } + res.reading_body(@socket, req.response_body_permitted?) { + yield res if block_given? + } rescue Net::OpenTimeout raise rescue Net::ReadTimeout, IOError, EOFError, |