Cancel request if there is an authentication challenge but no credentials for it
Conflicts: AFNetworking/AFURLConnectionOperation.m
This commit is contained in:
parent
bdab46889b
commit
728f5c3d75
1 changed files with 2 additions and 0 deletions
|
|
@ -335,6 +335,8 @@ didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
|
||||||
|
|
||||||
if (credential) {
|
if (credential) {
|
||||||
[[challenge sender] useCredential:credential forAuthenticationChallenge:challenge];
|
[[challenge sender] useCredential:credential forAuthenticationChallenge:challenge];
|
||||||
|
} else {
|
||||||
|
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];
|
[[challenge sender] continueWithoutCredentialForAuthenticationChallenge:challenge];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue