diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-06 22:26:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-06 22:26:55 +0000 |
commit | fc3b4d06ca4f5c46457983b51f844f5afcd325df (patch) | |
tree | ecc89debc5f5402bfd340df85fbff610e3711358 /lib/xmlrpc | |
parent | d11d87c3627e60a957f9313d2106f7a6d2b5f7a1 (diff) | |
download | ruby-fc3b4d06ca4f5c46457983b51f844f5afcd325df.tar.gz |
* 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc')
-rw-r--r-- | lib/xmlrpc/client.rb | 2 |
1 files changed, 0 insertions, 2 deletions
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"] || "<unknown>" if data.nil? or data.bytesize == 0 raise "Wrong size. Was #{data.bytesize}, should be #{expected}" - elsif expected != "<unknown>" 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")) |