refactor: Replace postage with flume

This commit is contained in:
Michael Aaron Murphy 2022-03-27 16:02:25 +02:00 committed by Michael Murphy
parent 805bf6333e
commit e578f2d19c
11 changed files with 192 additions and 112 deletions

View file

@ -197,8 +197,7 @@ async fn fetch_favicon(url: &str, favicon_path: &Path, client: &HttpClient) -> O
let content_type = response
.headers()
.get(CONTENT_TYPE)
.map(|header| header.to_str().ok())
.flatten()
.and_then(|header| header.to_str().ok())
.unwrap();
if !ALLOWED_FAVICON_MIME.contains(&content_type) {