* 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:
parent
500e181e20
commit
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>
|
Tue Apr 13 16:48:00 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/net/pop.rb: merge POP3S patch. This patch is contributed by
|
* lib/net/pop.rb: merge POP3S patch. This patch is contributed by
|
||||||
|
@ -944,12 +944,12 @@ module Net # :nodoc:
|
|||||||
connect
|
connect
|
||||||
end
|
end
|
||||||
if @seems_1_0_server
|
if @seems_1_0_server
|
||||||
req['connection'] = 'close'
|
req['connection'] ||= 'close'
|
||||||
end
|
end
|
||||||
if not req.response_body_permitted? and @close_on_empty_response
|
if not req.response_body_permitted? and @close_on_empty_response
|
||||||
req['connection'] = 'close'
|
req['connection'] ||= 'close'
|
||||||
end
|
end
|
||||||
req['host'] = addr_port()
|
req['host'] ||= addr_port()
|
||||||
end
|
end
|
||||||
|
|
||||||
def end_transport(req, res)
|
def end_transport(req, res)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user