1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-26 06:43:09 +03:00

Drop the get prefix on Connection accessors.

This commit is contained in:
jwilson
2015-12-21 21:10:48 -05:00
parent 2b4ce3e6b7
commit 02d6b4e78c
11 changed files with 34 additions and 27 deletions

View File

@@ -31,7 +31,7 @@ public final class CheckHandshake {
Set<String> blacklist = Collections.singleton("sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=");
@Override public Response intercept(Chain chain) throws IOException {
for (Certificate certificate : chain.connection().getHandshake().peerCertificates()) {
for (Certificate certificate : chain.connection().handshake().peerCertificates()) {
String pin = CertificatePinner.pin(certificate);
if (blacklist.contains(pin)) {
throw new IOException("Blacklisted peer certificate: " + pin);