We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ee4bfe + e622b29 commit 7692bd2Copy full SHA for 7692bd2
SDWebImage/SDWebImageDownloader.m
@@ -67,7 +67,11 @@ - (id)init {
67
_downloadQueue = [NSOperationQueue new];
68
_downloadQueue.maxConcurrentOperationCount = 6;
69
_URLCallbacks = [NSMutableDictionary new];
70
- _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"];
+#ifdef SD_WEBP
71
+ _HTTPHeaders = [@{@"Accept": @"image/webp,image/*;q=0.8"} mutableCopy];
72
+#else
73
+ _HTTPHeaders = [@{@"Accept": @"image/*;q=0.8"} mutableCopy];
74
+#endif
75
_barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);
76
_downloadTimeout = 15.0;
77
}
0 commit comments