summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-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 104dca96810..b908b8ae795 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 6d2e34e127b..1f1df170324 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