From cce60ccc514095b57b31d2e5545ed06aadb7bf26 Mon Sep 17 00:00:00 2001 From: Sergei Golovin Date: Sun, 30 Jan 2022 06:54:56 +0400 Subject: [PATCH] * use handle from the cache only if the caller asked --- Source/NSURL.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSURL.m b/Source/NSURL.m index 52454f48b..1eb5aacf7 100644 --- a/Source/NSURL.m +++ b/Source/NSURL.m @@ -1577,7 +1577,7 @@ static NSUInteger urlAlign; - (void) loadResourceDataNotifyingClient: (id)client usingCache: (BOOL)shouldUseCache { - NSURLHandle *handle = [self URLHandleUsingCache: YES]; + NSURLHandle *handle = [self URLHandleUsingCache: shouldUseCache]; NSData *d; if (shouldUseCache == YES && (d = [handle availableResourceData]) != nil)