Last active
March 23, 2020 14:38
-
-
Save alistairsykes/4a7fec6917a4da72a2ff670f067e4274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpClient(Ios) { | |
// ... | |
engine { | |
val builder = CertificatePinner.Builder() | |
.add("publicobject.com", "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") | |
handleChallenge(builder.build()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment