Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Apr 20, 2016
1 parent be27393 commit 76fd198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mimemail.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ decode(OrigHeaders, Body, Options) ->
Encoding = proplists:get_value(encoding, Options, none),
%FixedHeaders = fix_headers(Headers),
Headers = decode_headers(OrigHeaders, [], Encoding),
AllowMissingVersion = proplists:get_value(allow_missing_version, Options, false),
case parse_with_comments(get_header_value(<<"MIME-Version">>, Headers)) of
undefined ->
AllowMissingVersion = proplists:get_value(allow_missing_version, Options, false),
case parse_content_type(get_header_value(<<"Content-Type">>, Headers)) of
{<<"multipart">>, _SubType, _Parameters} when AllowMissingVersion ->
MimeVersion = proplists:get_value(default_mime_version, Options, ?DEFAULT_MIME_VERSION),
Expand Down

0 comments on commit 76fd198

Please sign in to comment.