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)