|
@@ -104,7 +104,8 @@ open class TaskDelegate: NSObject {
|
|
|
} else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust {
|
|
} else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust {
|
|
|
let host = challenge.protectionSpace.host
|
|
let host = challenge.protectionSpace.host
|
|
|
|
|
|
|
|
- if let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host),
|
|
|
|
|
|
|
+ if
|
|
|
|
|
+ let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host),
|
|
|
let serverTrust = challenge.protectionSpace.serverTrust
|
|
let serverTrust = challenge.protectionSpace.serverTrust
|
|
|
{
|
|
{
|
|
|
if serverTrustPolicy.evaluate(serverTrust, forHost: host) {
|
|
if serverTrustPolicy.evaluate(serverTrust, forHost: host) {
|