Cancel request if there is an authentication challenge but no credentials for it

Conflicts:

	AFNetworking/AFURLConnectionOperation.m
This commit is contained in:
Jorge Bernal 2012-01-05 17:45:24 +01:00 committed by Mattt Thompson
parent bdab46889b
commit 728f5c3d75

View file

@ -335,6 +335,8 @@ didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
if (credential) {
[[challenge sender] useCredential:credential forAuthenticationChallenge:challenge];
} else {
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];
}
} else {
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];