Skip to content

Commit

Permalink
fix(web): Missing early return on bad content type
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Mar 30, 2022
1 parent d6c3702 commit e5f381b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5f381b

Please sign in to comment.