Skip to content

Commit

Permalink
allow users to remove the MIME-Version header.
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlich authored and rjbs committed Jul 6, 2012
1 parent ff45464 commit 4608623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MIME/Lite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1154,12 +1154,12 @@ sub top_level {
my ( $self, $onoff ) = @_;
my $attrs = $self->{Attrs};
if ($onoff) {
$attrs->{'MIME-Version'} = '1.0';
$attrs->{'mime-version'} = '1.0';
my $uses = ( @Uses ? ( "(" . join( "; ", @Uses ) . ")" ) : '' );
$self->replace( 'X-Mailer' => "MIME::Lite $VERSION $uses" )
unless $VANILLA;
} else {
delete $attrs->{'MIME-Version'};
delete $attrs->{'mime-version'};
$self->delete('X-Mailer');
}
}
Expand Down

0 comments on commit 4608623

Please sign in to comment.