From 5728ed4f51b6a79355a6cd517a7ae9a6928381fe Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 8 Mar 2000 10:40:11 +0000 Subject: 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 --- lib/net/http.rb | 4 +++- lib/net/protocol.rb | 2 +- 2 files changed, 4 insertions(+), 2 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 ) diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 6d2e34e127..1f1df17032 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 -- cgit v1.2.3