Authored by 孟顺

添加防盗链referer review by 枪兵

1 Pod::Spec.new do |s| 1 Pod::Spec.new do |s|
2 s.name = 'SDWebImage' 2 s.name = 'SDWebImage'
3 - s.version = '1.0.5' 3 + s.version = '1.0.6'
4 s.platform = :ios, '8.0' 4 s.platform = :ios, '8.0'
5 s.license = 'MIT' 5 s.license = 'MIT'
6 s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.' 6 s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.'
@@ -42,6 +42,7 @@ @@ -42,6 +42,7 @@
42 if ((self = [super init])) { 42 if ((self = [super init])) {
43 _imageCache = [self createCache]; 43 _imageCache = [self createCache];
44 _imageDownloader = [SDWebImageDownloader sharedDownloader]; 44 _imageDownloader = [SDWebImageDownloader sharedDownloader];
  45 + [_imageDownloader setValue:@"yohobuy.com" forHTTPHeaderField:@"Referer"];
45 _failedURLs = [NSMutableSet new]; 46 _failedURLs = [NSMutableSet new];
46 _runningOperations = [NSMutableArray new]; 47 _runningOperations = [NSMutableArray new];
47 } 48 }