Enabling invalid SSL certificates on UIImageView+AFNetworking

Conflicts:

	Tests/Podfile.lock
This commit is contained in:
Flávio Caetano 2013-07-22 18:51:43 -03:00 committed by Mattt Thompson
parent 9c23a1955c
commit 1753b29bd2

View file

@ -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) {