Fix crash when assign request property of SDWebImageDownloadToken

This commit is contained in:
zhongwuzw 2018-07-09 16:32:47 +08:00
parent 8dc39b17fe
commit 28eb1b4b5c
2 changed files with 4 additions and 4 deletions

View File

@ -109,12 +109,12 @@ typedef SDImageLoaderCompletedBlock SDWebImageDownloaderCompletedBlock;
/**
The download's request.
*/
@property (nonatomic, copy, nullable, readonly) NSURLRequest *request;
@property (nonatomic, strong, nullable, readonly) NSURLRequest *request;
/**
The download's response.
*/
@property (nonatomic, copy, nullable, readonly) NSURLResponse *response;
@property (nonatomic, strong, nullable, readonly) NSURLResponse *response;
@end

View File

@ -19,8 +19,8 @@ static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
@interface SDWebImageDownloadToken ()
@property (nonatomic, strong, nullable, readwrite) NSURL *url;
@property (nonatomic, copy, nullable, readwrite) NSURLRequest *request;
@property (nonatomic, copy, nullable, readwrite) NSURLResponse *response;
@property (nonatomic, strong, nullable, readwrite) NSURLRequest *request;
@property (nonatomic, strong, nullable, readwrite) NSURLResponse *response;
@property (nonatomic, strong, nullable, readwrite) id downloadOperationCancelToken;
@property (nonatomic, weak, nullable) NSOperation<SDWebImageDownloaderOperation> *downloadOperation;
@property (nonatomic, weak, nullable) SDWebImageDownloader *downloader;