Change the default delegate method to allows optional cert in SSL verify, matches URLSession's behavior
This commit is contained in:
parent
fd326e3d51
commit
18eda252d2
|
@ -565,7 +565,9 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
credential = self.credential;
|
||||
disposition = NSURLSessionAuthChallengeUseCredential;
|
||||
} else {
|
||||
disposition = NSURLSessionAuthChallengeCancelAuthenticationChallenge;
|
||||
// Web Server like Nginx can set `ssl_verify_client` to optional but not always on
|
||||
// We'd better use default handling here
|
||||
disposition = NSURLSessionAuthChallengePerformDefaultHandling;
|
||||
}
|
||||
} else {
|
||||
disposition = NSURLSessionAuthChallengeCancelAuthenticationChallenge;
|
||||
|
|
Loading…
Reference in New Issue