set svn:eol-style
0 lines of code changed in:
merge test cases with Ruby 1.8
74 lines of code changed in:
* 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.
12 lines of code changed in:
* lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched
substring directly.
* ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a.
* test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed
change of sample/test.rb.
* test/net/http/test_http.rb: removed superfluous splatting stars.
3 lines of code changed in:
* test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version 1.2. [ruby-dev:27312]
5 lines of code changed in:
* test/net/http/test_http.rb: new file.
377 lines of code changed in:
skip test if openssl is not available.
5 lines of code changed in:
fix another IPv6 issue.
1 lines of code changed in:
avoid IPv6 issue.
3 lines of code changed in:
add ML number.
2 lines of code changed in:
set verify_mode to avoid a warning.
1 lines of code changed in:
add a test.
26 lines of code changed in:
* lib/net/http.rb: new method Net::HTTP.post_form.
* lib/net/http.rb: new method Net::HTTPHeader#set_form_data and its alias #form_data=.
* lib/net/http.rb: Net::HTTPHeader#add_header -> add_field (adjustted to Ruby 1.8).
22 lines of code changed in:
* lib/net/http.rb (each_capitalized): should join header field value. This patch is contributed sheepman [ruby-list:40478]
* test/net/http/test_httpheader.rb: test it.
8 lines of code changed in:
* lib/net/http.rb: HTTPHeader keeps its header fields as an array.
* lib/net/http.rb: new method HTTPHeader#add_header, get_fields.
* lib/net/http.rb: new method HTTPHeader#content_length=.
* lib/net/http.rb: new method HTTPHeader#content_type, main_type, sub_type, type_params, content_type=, set_content_type.
* lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may contain multiple LFs.
77 lines of code changed in:
* test/net/test_httpheader.rb: new file.
* MANIFEST: add test/net/test_httpheader.rb.
137 lines of code changed in: