From 800e86d46ea1fed25f6b299a93aa6af4873fc046 Mon Sep 17 00:00:00 2001 From: kean Date: Tue, 23 Apr 2024 21:02:51 -0400 Subject: [PATCH] Add isLocalResourcesSupportEnabled support --- Sources/Nuke/Tasks/TaskFetchOriginalData.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Nuke/Tasks/TaskFetchOriginalData.swift b/Sources/Nuke/Tasks/TaskFetchOriginalData.swift index add602a62..53200ea8f 100644 --- a/Sources/Nuke/Tasks/TaskFetchOriginalData.swift +++ b/Sources/Nuke/Tasks/TaskFetchOriginalData.swift @@ -19,7 +19,7 @@ final class TaskFetchOriginalData: ImagePipelineTask<(Data, URLResponse?)> { return } - if url.isLocalResource { + if url.isLocalResource && pipeline.configuration.isLocalResourcesSupportEnabled { do { let data = try Data(contentsOf: url) send(value: (data, nil), isCompleted: true)