Skip to content

Commit

Permalink
Don't pass an empty intermediates array to NSURLCredential (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox authored Aug 1, 2019
1 parent 1ac8e11 commit 2cddbe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MOLAuthenticatingURLSession.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MOLAuthenticatingURLSession'
s.version = '2.7'
s.version = '2.8'
s.platform = :osx
s.osx.deployment_target = '10.9'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ - (NSURLCredential *)clientCredentialForProtectionSpace:(NSURLProtectionSpace *)

NSURLCredential *cred =
[NSURLCredential credentialWithIdentity:foundIdentity
certificates:intermediates
certificates:(intermediates.count) ? intermediates : nil
persistence:NSURLCredentialPersistenceForSession];
if (foundIdentity) CFRelease(foundIdentity);
return cred;
Expand Down

0 comments on commit 2cddbe5

Please sign in to comment.