fix: shared mime-info db not available on Windows
@@ -773,6 +773,7 @@ mod tests {
}
#[test]
+ #[cfg(not(target_os = "windows"))] // Requires shared mime-info db, not available on Windows
fn match_content_type_equals() {
expect!(match_content_type("some text".as_bytes(), "text/plain")).to(be_ok());
@@ -784,6 +785,7 @@ mod tests {
}
#[test]
+ #[cfg(not(target_os = "windows"))] // Requires shared mime-info db, not available on Windows
fn match_content_type_common_text_types() {
expect!(match_content_type("{\"val\": \"some text\"}".as_bytes(), "application/json")).to(be_ok());
expect!(match_content_type("<xml version=\"1.0\"><a/>".as_bytes(), "application/xml")).to(be_ok());
