From 728f5c3d75aed53ac2b58b83bc5b959850a60202 Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Thu, 5 Jan 2012 17:45:24 +0100 Subject: [PATCH] Cancel request if there is an authentication challenge but no credentials for it Conflicts: AFNetworking/AFURLConnectionOperation.m --- AFNetworking/AFURLConnectionOperation.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index cceb306..114cec2 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -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];