allow mime type matching for pdf (#39)

This commit is contained in:
phiresky 2020-04-08 12:33:48 +02:00
parent 235ee0a6bd
commit da10b5c1c9
2 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,9 @@ lazy_static! {
.iter()
.map(|s| FastMatcher::FileExtension(s.to_string()))
.collect(),
slow_matchers: None
slow_matchers: Some(vec![SlowMatcher::MimeType(
"application/pdf".to_owned()
)])
};
}
#[derive(Default)]

View File

@ -17,7 +17,9 @@ lazy_static! {
.iter()
.map(|s| FastMatcher::FileExtension(s.to_string()))
.collect(),
slow_matchers: None
slow_matchers: Some(vec![SlowMatcher::MimeType(
"application/pdf".to_owned()
)])
};
}
#[derive(Default)]