Merge pull request #234 from svgol/bug_NSURL_using_cache

use handle from the cache only if the caller asked
This commit is contained in:
rfm 2022-01-30 08:38:47 +00:00 committed by GitHub
commit 3e6284ab39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)