From: David ‘Bombe’ Roden Date: Mon, 12 Sep 2022 18:55:28 +0000 (+0200) Subject: 🚧 Don’t cancel on archive manifests X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e1507b16a50ac9b8b497e7d151b2889c1736ee9c;p=Sone.git 🚧 Don’t cancel on archive manifests --- diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index 066747d..0f05fc7 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -179,6 +179,9 @@ public class FreenetInterface { SnoopMetadata snoop = new SnoopMetadata() { @Override public boolean snoopMetadata(Metadata meta, ClientContext context) { + if (meta.isArchiveManifest()) { + return false; + } String mimeType = meta.getMIMEType(); boolean cancel = (mimeType == null) || backgroundFetchCallback.shouldCancel(uri, mimeType, meta.dataLength()); if (cancel) {