Parcourir la source

[PR #696] More flexible server trust policy via public method.

Jan Riehn il y a 10 ans
Parent
commit
6c38ad01a9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Source/ServerTrustPolicy.swift

+ 1 - 1
Source/ServerTrustPolicy.swift

@@ -42,7 +42,7 @@ public class ServerTrustPolicyManager {
         self.policies = policies
     }
 
-    func serverTrustPolicyForHost(host: String) -> ServerTrustPolicy? {
+    public func serverTrustPolicyForHost(host: String) -> ServerTrustPolicy? {
         return policies[host]
     }
 }