* lib/net/http.rb (HTTP#request): should not overwrite Connection header. (ruby-bugs:PR#1274)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5c6516c2d
commit
992d2749ac
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 8 14:24:35 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/net/http.rb (HTTP#request): should not overwrite Connection
|
||||||
|
header. (ruby-bugs:PR#1274)
|
||||||
|
|
||||||
Sat Feb 8 10:11:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Sat Feb 8 10:11:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* dir.c (glob_helper): Dir.glob('**/') did not work. [ruby-dev:22832]
|
* dir.c (glob_helper): Dir.glob('**/') did not work. [ruby-dev:22832]
|
||||||
|
@ -819,7 +819,7 @@ module Net # :nodoc:
|
|||||||
def request(req, body = nil, &block) # :yield: +response+
|
def request(req, body = nil, &block) # :yield: +response+
|
||||||
unless started?
|
unless started?
|
||||||
start {
|
start {
|
||||||
req['connection'] = 'close'
|
req['connection'] ||= 'close'
|
||||||
return request(req, body, &block)
|
return request(req, body, &block)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user