summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-21 06:37:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-21 06:37:24 +0000
commit4326f5ebfbae23a4269273b80a01ece6d3c24608 (patch)
treeac85733cc87fdfccc5b1e1e0b20aae1de610cf5a /lib/net
parent48fd3fc32ba4763ecd89294eec74ac7ecd842cfc (diff)
downloadruby-4326f5ebfbae23a4269273b80a01ece6d3c24608.tar.gz
ruby-4326f5ebfbae23a4269273b80a01ece6d3c24608.tar.xz
ruby-4326f5ebfbae23a4269273b80a01ece6d3c24608.zip
matz - net library bug (by me)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 65cd5a993..447e88c99 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -350,13 +350,11 @@ module Net
@socket.reopen
end
- yield( u_header )
+ resp = yield( u_header )
if ublock then
adapter = HTTPReadAdapter.new( @command )
ublock.call adapter
resp = adapter.off
- else
- resp = @command.get_response
end
unless keep_alive? u_header, resp then