lib/soap/mimemessage.rb in soap4r-sgonyea-1.5.9 vs lib/soap/mimemessage.rb in soap4r-sgonyea-1.6.0

- old
+ new

@@ -1,6 +1,5 @@ -# encoding: ASCII-8BIT # SOAP4R - MIME Message implementation. # Copyright (C) 2002 Jamie Herre. # This program is copyrighted free software by NAKAMURA, Hiroshi. You can # redistribute it and/or modify it under the same terms of Ruby's license; @@ -48,10 +47,9 @@ new.parse(str) end def parse(str) header_cache = nil - str = str.lines if str.respond_to?(:lines) # RubyJedi: compatible with Ruby 1.8.6 and above str.each do |line| case line when /^\A[^\: \t]+:\s*.+$/ parse_line(header_cache) if header_cache header_cache = line.sub(/\r?\n\z/, '')