From 1753b29bd2856fcbe970f92e519b387647815baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Caetano?= Date: Mon, 22 Jul 2013 18:51:43 -0300 Subject: [PATCH] Enabling invalid SSL certificates on UIImageView+AFNetworking Conflicts: Tests/Podfile.lock --- AFNetworking/UIImageView+AFNetworking.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AFNetworking/UIImageView+AFNetworking.m b/AFNetworking/UIImageView+AFNetworking.m index f0f8274..839a2b8 100644 --- a/AFNetworking/UIImageView+AFNetworking.m +++ b/AFNetworking/UIImageView+AFNetworking.m @@ -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) {