Browse Source

Merge 5f8d2e9636 into 58a980f850

pull/7867/merge
ump45nose 4 days ago
committed by GitHub
parent
commit
6bde7a3c95
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/api/icons.rs

2
src/api/icons.rs

@ -524,7 +524,7 @@ async fn download_icon(domain: &str) -> Result<(Bytes, Option<&str>), Error> {
Ok(()) Ok(())
}) { }) {
Ok(_) => { Ok(_) => {
// Also check if the size is atleast 67 bytes, which seems to be the smallest png i could create // Also check if the size is at least 67 bytes, which seems to be the smallest png I could create
if body.len() >= 67 { if body.len() >= 67 {
// Check if the icon type is allowed, else try an icon from the list. // Check if the icon type is allowed, else try an icon from the list.
icon_type = get_icon_type(&body); icon_type = get_icon_type(&body);

Loading…
Cancel
Save