From: matz@... (Yukihiro Matsumoto) Date: 2004-02-04T04:04:52+09:00 Subject: [ruby-dev:22805] Forward: Net:HTTP conection type is always "close" (PR#1274) まつもと ゆきひろです フォワードしておきます。 ------- Start of forwarded message ------- From: sp4sp@mail.ru To: bugs-admin@ruby-lang.org Subject: Net:HTTP conection type is always "close" (PR#1274) Cc: ruby-bugs@ruby-lang.org Date: Wed, 4 Feb 2004 01:07:48 +0900 (JST) Hello, Here is an example: ... h = Net::HTTP.new(site, 80) headers = { "connection" => "Keep-Alive" } resp, data = h.get(file, headers) ... header 'Connection: close' is still sent. That's probably because of ... http.rb, line 819: def request( req, body = nil, &block ) # :yield: +response+ unless started? start { req['connection'] = 'close' return request(req, body, &block) } ... Maybe add something like "unless req['connection']"? Using ruby 1.8.1 Best regards, ch00k ------- End of forwarded message -------