savonrb/savon-multipart

Response decoding typo?

lgustafson opened this issue · 1 comments

The following is the current state of Savon::Soap::Response#to_xml:

  # Overwrite to work with multipart response.
  def to_xml
    if multipart?
      parts.first.body.encoded # we just assume the first part is the XML
    else
      http.body
    end
  end

It seems that "parts.first.body.encoded" is a typo and should be "parts.first.body.decoded" instead. This is the only way I could get it to work properly.

Very probable.
I'll push a fix for that asap.