From 089399065377b9c457cc963165614e5d125025b8 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 30 Mar 2022 17:36:31 +0200 Subject: [PATCH] fix(web): Missing early return on bad content type --- plugins/src/web/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/src/web/mod.rs b/plugins/src/web/mod.rs index 1ce2cc7..2461615 100644 --- a/plugins/src/web/mod.rs +++ b/plugins/src/web/mod.rs @@ -217,6 +217,7 @@ async fn fetch_favicon(url: &str, favicon_path: &Path, client: &Client) -> Optio content_type, favicon_path ); + return None; }; match response.bytes().await {