Browse files

[fix] mime: forgot to decode B-encoding and no-encoding

  • Loading branch information...
1 parent 9201e63 commit 85ed856dcb2fd8dcf74143ec28ae174378e41929 @Aqua-Ye Aqua-Ye committed May 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 stdlib/web/mail/mime.opa
View
4 stdlib/web/mail/mime.opa
@@ -137,8 +137,8 @@ Mime = {{
| ew=encoded_word ->
match string_to_encoding(ew.encoding)
| {some={Q_encoding}} -> decoder(ew.charset, Q.decode(ew.encoded_text))
- | {some={B_encoding}} -> Crypto.Base64.decode(ew.encoded_text)
- | {none} -> ew.encoded_text
+ | {some={B_encoding}} -> decoder(ew.charset, Crypto.Base64.decode(ew.encoded_text))
+ | {none} -> decoder(ew.charset, ew.encoded_text)
end
| c=. -> Cactutf.cons(c)

0 comments on commit 85ed856

Please sign in to comment.