Skip to content

Commit

Permalink
Formatting fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanKasan committed Apr 18, 2017
1 parent 1a96648 commit c661cc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parsemail.go
Expand Up @@ -201,6 +201,9 @@ func parseMultipartAlternative(msg io.Reader, boundary string) (textBody, htmlBo
}

contentType, params, err := mime.ParseMediaType(part.Header.Get("Content-Type"))
if err != nil {
return textBody, htmlBody, embeddedFiles, err
}

switch contentType {
case contentTypeTextPlain:
Expand Down

0 comments on commit c661cc0

Please sign in to comment.