Skip to content

Commit

Permalink
[fix] mime: re-enable text/plain while parsing body
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye committed Apr 2, 2012
1 parent afa04b1 commit 4812e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/web/mail/mime.opa
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Mime = {{
| "multipart/related" -> | "multipart/related" ->
boundary = Header.extract_value("boundary", content_type_list) boundary = Header.extract_value("boundary", content_type_list)
multipart(body, boundary) multipart(body, boundary)
// | "text/plain" -> {plain=decoded_body} | "text/plain" -> {plain=decoded_body}
| "text/html" -> {html=Xhtml.of_string(decoded_body)} | "text/html" -> {html=Xhtml.of_string(decoded_body)}
| _ -> | _ ->
match Header.find("Content-Disposition", headers) match Header.find("Content-Disposition", headers)
Expand Down

0 comments on commit 4812e27

Please sign in to comment.