[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIInternalErrorWhileApplyingCredentialsTypeuserInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Failed to apply proxy credentials to request",NSLocalizedDescriptionKey,nil]]];
}
return;
}
if([selfaskDelegateForProxyCredentials]){
[selfattemptToApplyProxyCredentialsAndResume];
[delegateAuthenticationLockunlock];
return;
}
if([selfshowProxyAuthenticationDialog]){
[selfattemptToApplyProxyCredentialsAndResume];
[delegateAuthenticationLockunlock];
return;
}
[delegateAuthenticationLockunlock];
// The delegate isn't interested and we aren't showing the authentication dialog, we'll have to give up
//If we have some credentials to use let's apply them to the request and continue
if(newCredentials){
if([selfapplyCredentials:newCredentials]){
[delegateAuthenticationLockunlock];
[selfstartRequest];
}else{
[delegateAuthenticationLockunlock];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIInternalErrorWhileApplyingCredentialsTypeuserInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Failed to apply credentials to request",NSLocalizedDescriptionKey,nil]]];