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 93d6cee commit b2949feCopy full SHA for b2949fe
src/clj_http/conn_mgr.clj
@@ -24,15 +24,15 @@
24
DefaultConnectingIOReactor)
25
(org.apache.http.nio.conn NoopIOSessionStrategy)))
26
27
-(def insecure-context-verifier
+(def ^:private insecure-context-verifier
28
{
29
:context (-> (SSLContexts/custom)
30
(.loadTrustMaterial nil (reify TrustStrategy
31
(isTrusted [_ _ _] true)))
32
(.build))
33
:verifier NoopHostnameVerifier/INSTANCE})
34
35
-(def ^SSLIOSessionStrategy insecure-socket-factory
+(def ^SSLConnectionSocketFactory insecure-socket-factory
36
(let [{:keys [context verifier]} insecure-context-verifier]
37
(SSLConnectionSocketFactory. ^SSLContext context
38
^HostnameVerifier verifier)))
0 commit comments