lib/mail/header.rb in mail-2.6.4.rc1 vs lib/mail/header.rb in mail-2.6.4.rc2

- old
+ new

@@ -47,11 +47,11 @@ # no automatic processing of that field will happen. If you find one of # these cases, please make a patch and send it in, or at the least, send # me the example so we can fix it. def initialize(header_text = nil, charset = nil) @charset = charset - self.raw_source = header_text.to_crlf.lstrip + self.raw_source = ::Mail::Utilities.to_crlf(header_text).lstrip split_header if header_text end def initialize_copy(original) super @@ -202,10 +202,10 @@ return-path content-type mime-version content-transfer-encoding content-description content-id content-disposition content-location] def encoded - buffer = '' + buffer = String.new buffer.force_encoding('us-ascii') if buffer.respond_to?(:force_encoding) fields.each do |field| buffer << field.encoded end buffer