Permalink
Browse files

[fix] mime: quick-fix mime headers parsing

  • Loading branch information...
1 parent a2ecd25 commit 65852cbe3fff12b966cae4122318951f1a118ab5 @Aqua-Ye Aqua-Ye committed Apr 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 stdlib/web/mail/mime.opa
View
4 stdlib/web/mail/mime.opa
@@ -251,7 +251,9 @@ Mime = {{
merge_fields(l) =
(a, b) =
List.fold_map(e, acc ->
- if String.contains(e, ":") then
+ if String.has_prefix("\t", e) then
+ ([], "{acc} {String.trim(e)}")
+ else if String.contains(e, ":") then
([acc], e)
else
([], "{acc} {e}")

0 comments on commit 65852cb

Please sign in to comment.