aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-08 10:40:11 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-08 10:40:11 +0000
commit5728ed4f51b6a79355a6cd517a7ae9a6928381fe (patch)
treef9dfd5c7c784d6c9fd1d0800a7a904b38aeae5fa /lib/net/http.rb
parent035226e1fe71085c7c9c84dacd14448870fca9da (diff)
downloadruby-5728ed4f51b6a79355a6cd517a7ae9a6928381fe.tar.gz
net Version 1.1.7
o http.rb: HTTP#connecting() returns header again git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 104dca9681..b908b8ae79 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -100,11 +100,13 @@ class HTTPBadResponse < HTTPError; end
@socket.reopen
end
- yield
+ header = yield
unless keep_alive? u_header then
@socket.close
end
+
+ header
end
def keep_alive?( header )