savonrb / savon-multipart

Heavy metal Ruby SOAP client with multipart support
MIT License
17 stars 47 forks source link

Response decoding typo? #1

Closed lgustafson closed 13 years ago

lgustafson commented 13 years ago

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.

eimermusic commented 13 years ago

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