mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-23 11:57:21 +08:00
Fix for local image URLs
This commit is contained in:
@@ -102,7 +102,8 @@
|
||||
[self lock];
|
||||
dispatch_queue_t delegateQueue = self.delegateQueues[@(task.taskIdentifier)];
|
||||
[self unlock];
|
||||
if ([(NSHTTPURLResponse *)task.response statusCode] == 404 && !error) {
|
||||
NSHTTPURLResponse *response = (NSHTTPURLResponse *)task.response;
|
||||
if ([response respondsToSelector:@selector(statusCode)] && [response statusCode] == 404 && !error) {
|
||||
error = [NSError errorWithDomain:NSURLErrorDomain
|
||||
code:NSURLErrorRedirectToNonExistentLocation
|
||||
userInfo:@{NSLocalizedDescriptionKey : @"The requested URL was not found on this server."}];
|
||||
|
||||
Reference in New Issue
Block a user