diff --git a/src/message.rs b/src/message.rs index b6155b6a8..04175defa 100644 --- a/src/message.rs +++ b/src/message.rs @@ -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 {