Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[enhance] mime: also handle multipart/related

  • Loading branch information...
commit 7809f7c3c81ec76b45c4d594b0c646f9576a9241 1 parent 742a790
@Aqua-Ye Aqua-Ye authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  stdlib/web/mail/mime.opa
View
3  stdlib/web/mail/mime.opa
@@ -298,6 +298,9 @@ Mime = {{
| "multipart/alternative" ->
boundary = Header.extract_value("boundary", content_type_list)
multipart(body, boundary)
+ | "multipart/related" ->
+ boundary = Header.extract_value("boundary", content_type_list)
+ multipart(body, boundary)
| "text/plain" -> {plain=decoded_body}
| "text/html" -> {html=Xhtml.of_string(decoded_body)}
| _ ->
Please sign in to comment.
Something went wrong with that request. Please try again.