From e1507b16a50ac9b8b497e7d151b2889c1736ee9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 12 Sep 2022 20:55:28 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=9A=A7=20Don=E2=80=99t=20cancel=20on=20arc?= =?utf8?q?hive=20manifests?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/FreenetInterface.java | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.7.4