Skip to content

Commit

Permalink
empty charset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek committed Jan 9, 2019
1 parent f8825eb commit 0623039
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mail/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,10 @@ def charset
# Sets the charset to the supplied value.
def charset=(value)
@defaulted_charset = false
@charset = value
@header.charset = value
if value
@charset = value
@header.charset = value
end
end

# Returns the main content type
Expand Down

0 comments on commit 0623039

Please sign in to comment.