lib/lolsoap/request.rb in lolsoap-0.6.0 vs lib/lolsoap/request.rb in lolsoap-0.6.1
- old
+ new
@@ -4,11 +4,11 @@
attr_reader :envelope
attr_accessor :xml_options
def initialize(envelope)
@envelope = envelope
- @xml_options = {}
+ @xml_options = default_xml_options
end
# @see Envelope#body
def body(&block)
envelope.body(&block)
@@ -76,8 +76,14 @@
end
# The content to be sent in the HTTP request
def content
@content ||= envelope.to_xml(xml_options)
+ end
+
+ private
+
+ def default_xml_options
+ { encoding: charset }
end
end
end