ruby-cvs:17249
From: (aamine) <aamine ruby-lang.org>
Date: Wed, 26 Jul 2006 22:15:32 +0900
Subject: [ruby-cvs:17249] ruby, ruby/lib/net, ruby/test/net/http: * lib/net/http.rb: sync with HEAD (rev 1.132).
aamine Wed, 26 Jul 2006 22:15:32 +0900
Modified files: (Branch: ruby_1_8)
ruby:
ChangeLog
ruby/lib/net:
http.rb
ruby/test/net/http:
test_httpheader.rb
Log:
* lib/net/http.rb: sync with HEAD (rev 1.132).
* lib/net/http.rb (Net::HTTP#post, request_post, request): should set Content-Type: x-www-form-urlencoded by default.
* lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type.
* lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text").
* lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type.
Revision Changes Path
1.2673.2.1767 +16 -0 ruby/ChangeLog
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ChangeLog?cvsroot=src&r1=1.2673.2.1766&r2=1.2673.2.1767
1.100.2.13 +46 -15 ruby/lib/net/http.rb
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/net/http.rb?cvsroot=src&r1=1.100.2.12&r2=1.100.2.13
1.3.2.2 +36 -80 ruby/test/net/http/test_httpheader.rb
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/test/net/http/test_httpheader.rb?cvsroot=src&r1=1.3.2.1&r2=1.3.2.2