aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmlrpc/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlrpc/client.rb')
-rw-r--r--lib/xmlrpc/client.rb2
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"))