When AFNetworking is in an embedded framework, load certificates from app bundle
This commit is contained in:
parent
ac330c84c8
commit
6b2515d8c0
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
|
|||
static NSArray *_pinnedCertificates = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
NSBundle *bundle = [NSBundle bundleForClass:[self class]];
|
||||
NSBundle *bundle = [NSBundle mainBundle];
|
||||
NSArray *paths = [bundle pathsForResourcesOfType:@"cer" inDirectory:@"."];
|
||||
|
||||
NSMutableArray *certificates = [NSMutableArray arrayWithCapacity:[paths count]];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue