diff --git a/Darkly/LDRequestManager.m b/Darkly/LDRequestManager.m index 3f6c4656..6b22974f 100644 --- a/Darkly/LDRequestManager.m +++ b/Darkly/LDRequestManager.m @@ -47,7 +47,7 @@ -(void)performFeatureFlagRequest:(NSString *)encodedUser if (mobileKey) { if (encodedUser) { - NSURLSession *defaultSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; + NSURLSession *defaultSession = [NSURLSession sharedSession]; NSString *requestUrl = [baseUrl stringByAppendingString:kFeatureFlagUrl]; requestUrl = [requestUrl stringByAppendingString:encodedUser]; @@ -96,7 +96,7 @@ -(void)performEventRequest:(NSArray *)jsonEventArray if (mobileKey) { if (jsonEventArray) { - NSURLSession *defaultSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; + NSURLSession *defaultSession = [NSURLSession sharedSession]; NSString *requestUrl = [eventsUrl stringByAppendingString:kEventUrl]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:requestUrl]];