lib/savon/soap/xml.rb in savon-0.8.0.beta.3 vs lib/savon/soap/xml.rb in savon-0.8.0.beta.4

- old
+ new

@@ -112,10 +112,10 @@ defaults.merge namespaces end # Returns the SOAP header as an XML String. def header_for_xml - header.to_soap_xml + wsse_header + @header_for_xml ||= header.to_soap_xml + wsse_header end # Returns the WSSE header or an empty String in case WSSE was not set. def wsse_header wsse.respond_to?(:to_xml) ? wsse.to_xml : ""