Permalink
Browse files

Fix auth failure on 10.11 El Capitan Beta 3

Looks like NSURLAuthenticationMethodDefault is not equal to NSURLAuthenticationMethodHTTPBasic.
Fix #43.
  • Loading branch information...
ashchan committed Jul 10, 2015
1 parent 8794523 commit 000db224c32bbd292c2e84ab9a57d8764b41fd64
Showing with 2 additions and 1 deletion.
  1. +2 −1 Classes/GNChecker.m
View
@@ -102,7 +102,8 @@ - (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticatio
if ([authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {
[[challenge sender] useCredential:[NSURLCredential credentialForTrust:[protectionSpace serverTrust]]
forAuthenticationChallenge:challenge];
} else if ([authenticationMethod isEqualToString:NSURLAuthenticationMethodDefault]) {
} else if ([authenticationMethod isEqualToString:NSURLAuthenticationMethodHTTPBasic]) {
// FIX 2015-07-11: on 10.11 Beta 3, NSURLAuthenticationMethodDefault not quivalent to NSURLAuthenticationMethodHTTPBasic?
if ([challenge previousFailureCount] > 0) {
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];
} else {

0 comments on commit 000db22

Please sign in to comment.