mime: use text/plain as a fallback
This commit is contained in:
parent
31392200dc
commit
909b7f6ff3
3 changed files with 15 additions and 3 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue