Project

General

Profile

Bug #5660 ยป ruby-xmlrpc-changes.patch

nateleavitt (Nathan Leavitt), 11/23/2011 02:45 AM

View differences:

lib/xmlrpc/client.rb (working copy)
raise "HTTP-Error: #{resp.code} #{resp.message}"
end
ct = parse_content_type(resp["Content-Type"]).first
# assume text/xml on instances where Content-Type header is not set
ct_expected = resp["Content-Type"] || 'text/xml'
ct = parse_content_type(ct_expected).first
if ct != "text/xml"
if ct == "text/html"
raise "Wrong content-type (received '#{ct}' but expected 'text/xml'): \n#{data}"
    (1-1/1)