Enabling invalid SSL certificates on UIImageView+AFNetworking
Conflicts: Tests/Podfile.lock
This commit is contained in:
parent
9c23a1955c
commit
1753b29bd2
1 changed files with 5 additions and 0 deletions
|
|
@ -114,6 +114,11 @@ static char kAFImageRequestOperationObjectKey;
|
|||
}
|
||||
|
||||
AFImageRequestOperation *requestOperation = [[AFImageRequestOperation alloc] initWithRequest:urlRequest];
|
||||
|
||||
#ifdef _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_
|
||||
requestOperation.allowsInvalidSSLCertificate = YES;
|
||||
#endif
|
||||
|
||||
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
|
||||
if ([urlRequest isEqual:[self.af_imageRequestOperation request]]) {
|
||||
if (self.af_imageRequestOperation == operation) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue