mime: use text/plain as a fallback

This commit is contained in:
Kirill Chibisov 2023-10-10 21:07:27 +04:00 committed by GitHub
parent 31392200dc
commit 909b7f6ff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View file

@ -217,7 +217,9 @@ impl State {
// Post-process the content according to mime type.
let content = match mime_type {
MimeType::TextPlainUtf8 => normalize_to_lf(content),
MimeType::TextPlainUtf8 | MimeType::TextPlain => {
normalize_to_lf(content)
},
MimeType::Utf8String => content,
};