We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec13ac commit 971ca5bCopy full SHA for 971ca5b
webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientGenerator.java
@@ -69,9 +69,7 @@ private SSLConnectionSocketFactory buildSSLConnectionSocketFactory() {
69
return new SSLConnectionSocketFactory(sslContext, supportedProtocols,
70
null,
71
new DefaultHostnameVerifier()); // 优先绕过安全证书
72
- } catch (KeyManagementException e) {
73
- logger.error("ssl connection fail", e);
74
- } catch (NoSuchAlgorithmException e) {
+ } catch (KeyManagementException | NoSuchAlgorithmException e) {
75
logger.error("ssl connection fail", e);
76
}
77
return SSLConnectionSocketFactory.getSocketFactory();
0 commit comments