This commit is contained in:
Connor Montgomery
2015-11-09 13:00:05 -05:00
parent 1fcc55c296
commit 213ce3cb14

View File

@@ -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."}];