diff --git a/ChangeLog b/ChangeLog index 031d8ac0bd..bed3c3c841 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 7 07:20:23 2014 NARUSE, Yui + + * lib/xmlrpc/client.rb (do_rpc): don't check body length. + If HTTP content-encoding is used, the length may be different. + [Bug #8182] [ruby-core:53811] + Mon Apr 7 02:39:48 2014 Marc-Andre Lafortune * lib/matrix.rb: Add Matrix#cofactor [fix GH-568] diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb index 5ee3961f30..95b1ea2d17 100644 --- a/lib/xmlrpc/client.rb +++ b/lib/xmlrpc/client.rb @@ -507,8 +507,6 @@ module XMLRPC # :nodoc: expected = resp["Content-Length"] || "" if data.nil? or data.bytesize == 0 raise "Wrong size. Was #{data.bytesize}, should be #{expected}" - elsif expected != "" and expected.to_i != data.bytesize and resp["Transfer-Encoding"].nil? - raise "Wrong size. Was #{data.bytesize}, should be #{expected}" end parse_set_cookies(resp.get_fields("Set-Cookie"))