Skip to content

Commit

Permalink
0004420: Error "hostnameVerifier parameter specified as non-null is
Browse files Browse the repository at this point in the history
null"
  • Loading branch information
erilong committed Jun 9, 2020
1 parent 139d64a commit d54cd83
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -83,9 +83,7 @@ public boolean verify(String s, SSLSession sslsession) {
}
};
HttpsURLConnection.setDefaultHostnameVerifier(hostnameVerifier);
if (enableHttps2) {
Http2Connection.setHostnameVerifier(hostnameVerifier);
}
Http2Connection.setHostnameVerifier(hostnameVerifier);
}

if (allowSelfSignedCerts) {
Expand Down

0 comments on commit d54cd83

Please sign in to comment.