Skip to content

Commit

Permalink
Fix auth failure on 10.11 El Capitan Beta 3
Browse files Browse the repository at this point in the history
Looks like NSURLAuthenticationMethodDefault is not equal to NSURLAuthenticationMethodHTTPBasic.
Fix #43.
  • Loading branch information
ashchan committed Jul 10, 2015
1 parent 8794523 commit 000db22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/GNChecker.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 000db22

Please sign in to comment.