* lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the

Content-Length parameter optional for responses in
  xmlrpc/client.rb; suggested by Daniel Berger
  <Daniel.Berger@qwest.com> and approved by the maintainer.

* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
  support to xmlrpc; approved by the maintainer.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2007-02-23 03:42:01 +00:00
Родитель 67c94cae96
Коммит e17884c45c
3 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,13 @@
Fri Feb 23 12:40:12 2007 Akinori MUSHA <knu@iDaemons.org>
* lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
Content-Length parameter optional for responses in
xmlrpc/client.rb; suggested by Daniel Berger
<Daniel.Berger@qwest.com> and approved by the maintainer.
* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
support to xmlrpc; approved by the maintainer.
Fri Feb 23 12:24:46 2007 Minero Aoki <aamine@loveruby.net>
* parse.y (lambda): add ripper event. This fixes bus error on

Просмотреть файл

@ -558,7 +558,7 @@ module XMLRPC
expected = resp["Content-Length"] || "<unknown>"
if data.nil? or data.size == 0
raise "Wrong size. Was #{data.size}, should be #{expected}"
elsif expected.to_i != data.size and resp["Transfer-Encoding"].nil?
elsif expected != "<unknown>" and expected.to_i != data.size and resp["Transfer-Encoding"].nil?
raise "Wrong size. Was #{data.size}, should be #{expected}"
end

Просмотреть файл

@ -241,7 +241,7 @@ module XMLRPC
@writer.ele("data", *a)
)
when Time, Date
when Time, Date, ::DateTime
@writer.tag("dateTime.iso8601", param.strftime("%Y%m%dT%H:%M:%S"))
when XMLRPC::DateTime