lib/rmail/header.rb in rmail-1.0.0 vs lib/rmail/header.rb in rmail-1.1.0

- old
+ new

@@ -71,11 +71,11 @@ class Header include Enumerable class Field # :nodoc: # fixme, document methadology for this (RFC2822) - EXTRACT_FIELD_NAME_RE = /\A([^\x00-\x1f\x7f-\xff :]+):\s*/o + EXTRACT_FIELD_NAME_RE = /\A([^\x00-\x1f\x7f-\xff :]+):\s*/no class << self def parse(field) field = field.to_str if field =~ EXTRACT_FIELD_NAME_RE @@ -628,10 +628,10 @@ end # Set the boundary parameter of this message's Content-Type: # field. def set_boundary(boundary) - params = params_quoted('content-type') + params = params('content-type') params ||= {} params['boundary'] = boundary content_type = content_type() content_type ||= "multipart/mixed" delete('Content-Type')