mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
035226e1fe
commit
5728ed4f51
2 changed files with 4 additions and 2 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ require 'socket'
|
|||
|
||||
module Net
|
||||
|
||||
Version = '1.1.6'
|
||||
Version = '1.1.7'
|
||||
|
||||
=begin
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue