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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user