summaryrefslogtreecommitdiffstats
path: root/lib
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
commit4ae6373a307244d9f8212f96607950215c15b302 (patch)
treef9dfd5c7c784d6c9fd1d0800a7a904b38aeae5fa /lib
parent709f2b9ab78c52a1bdb38be39439ea61e7c34c38 (diff)
downloadruby-4ae6373a307244d9f8212f96607950215c15b302.tar.gz
ruby-4ae6373a307244d9f8212f96607950215c15b302.tar.xz
ruby-4ae6373a307244d9f8212f96607950215c15b302.zip
net Version 1.1.7
o http.rb: HTTP#connecting() returns header again git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb4
-rw-r--r--lib/net/protocol.rb2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 104dca968..b908b8ae7 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 )
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 6d2e34e12..1f1df1703 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -15,7 +15,7 @@ require 'socket'
module Net
- Version = '1.1.6'
+ Version = '1.1.7'
=begin