Permalink
Browse files

[fix] Mime: keep empty string for content type list

  • Loading branch information...
1 parent b34d84b commit ace365b34e6a039bf49794c44239db4e0bbe66d3 @Aqua-Ye Aqua-Ye committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/web/mail/mime.opa
View
2 stdlib/web/mail/mime.opa
@@ -282,7 +282,7 @@ Mime = {{
{some=content_type} ->
content_type_list =
- String.explode(";", content_type)
+ String.explode_with(";", content_type, false)
|> List.map(String.trim, _)
charset =
cs = Header.extract_value("charset", content_type_list)

0 comments on commit ace365b

Please sign in to comment.