summaryrefslogtreecommitdiff
path: root/lib/soap/mimemessage.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/mimemessage.rb')
-rw-r--r--lib/soap/mimemessage.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/soap/mimemessage.rb b/lib/soap/mimemessage.rb
index 1197cebc8c..acb4322e11 100644
--- a/lib/soap/mimemessage.rb
+++ b/lib/soap/mimemessage.rb
@@ -112,6 +112,7 @@ class MIMEMessage
@headers = Headers.new
@headers.add("Content-Transfer-Encoding", "8bit")
@body = nil
+ @contentid = nil
end
def self.parse(str)
@@ -147,6 +148,7 @@ class MIMEMessage
def initialize
@parts = []
@headers = Headers.new
+ @root = nil
end
def self.parse(head, str)
@@ -197,7 +199,7 @@ class MIMEMessage
def add_part(content)
part = Part.new
part.headers.add("Content-Type",
- "text/xml; charset=" + XSD::Charset.encoding_label)
+ "text/xml; charset=" + XSD::Charset.xml_encoding_label)
part.headers.add("Content-ID", Attachment.contentid(part))
part.body = content
@parts.unshift(part)