зеркало из https://github.com/github/ruby.git
* lib/net/http.rb (begin_transport): should not overwrite HTTP request header. [ruby-list:39543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
500e181e20
Коммит
a4e80a024d
|
@ -1,3 +1,8 @@
|
|||
Tue Apr 13 17:55:16 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb (begin_transport): should not overwrite HTTP
|
||||
request header. [ruby-list:39543]
|
||||
|
||||
Tue Apr 13 16:48:00 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/pop.rb: merge POP3S patch. This patch is contributed by
|
||||
|
|
|
@ -944,12 +944,12 @@ module Net # :nodoc:
|
|||
connect
|
||||
end
|
||||
if @seems_1_0_server
|
||||
req['connection'] = 'close'
|
||||
req['connection'] ||= 'close'
|
||||
end
|
||||
if not req.response_body_permitted? and @close_on_empty_response
|
||||
req['connection'] = 'close'
|
||||
req['connection'] ||= 'close'
|
||||
end
|
||||
req['host'] = addr_port()
|
||||
req['host'] ||= addr_port()
|
||||
end
|
||||
|
||||
def end_transport(req, res)
|
||||
|
|
Загрузка…
Ссылка в новой задаче