| | |
| | | _HTTPHeaders = [@{@"Accept": @"image/*;q=0.8"} mutableCopy]; |
| | | #endif |
| | | _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT); |
| | | _downloadTimeout = 15.0; |
| | | _downloadTimeout = 30.0; |
| | | } |
| | | return self; |
| | | } |
| | |
| | | [self addProgressCallback:progressBlock completedBlock:completedBlock forURL:url createCallback:^{ |
| | | NSTimeInterval timeoutInterval = wself.downloadTimeout; |
| | | if (timeoutInterval == 0.0) { |
| | | timeoutInterval = 15.0; |
| | | timeoutInterval = 30.0; |
| | | } |
| | | |
| | | // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests if told otherwise |