get_filemime() should return an empty string if no mimetype is present

and not default to `applicatopm/octet-stream`
This commit is contained in:
jikstra
2019-09-25 19:28:17 +02:00
committed by holger krekel
parent f4c6decd2d
commit 53b5cbc12a

View File

@@ -150,9 +150,10 @@ impl Message {
if let Some((_, mime)) = guess_msgtype_from_suffix(Path::new(file)) {
return mime.to_string();
}
return "application/octet-stream".to_string()
}
"".to_string()
"application/octet-stream".to_string()
}
pub fn get_file(&self, context: &Context) -> Option<PathBuf> {