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