There isn't an /etc/mime.types on OSX

This commit is contained in:
Tony Garnock-Jones 2024-04-03 22:32:54 +02:00
parent b83b39515d
commit 91b26001d8
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ use crate::schemas::internal_services::HttpStaticFileServer;
use syndicate_macros::during;
lazy_static::lazy_static! {
pub static ref MIME_TABLE: Map<String, String> = load_mime_table("/etc/mime.types").expect("MIME table");
pub static ref MIME_TABLE: Map<String, String> = load_mime_table("/etc/mime.types").unwrap_or_default();
}
pub fn load_mime_table(path: &str) -> Result<Map<String, String>, std::io::Error> {