Skip to content

Commit b2949fe

Browse files
committed
Fix wrong type annotation in conn-mgr and hide a var.
1 parent 93d6cee commit b2949fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj_http/conn_mgr.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
DefaultConnectingIOReactor)
2525
(org.apache.http.nio.conn NoopIOSessionStrategy)))
2626

27-
(def insecure-context-verifier
27+
(def ^:private insecure-context-verifier
2828
{
2929
:context (-> (SSLContexts/custom)
3030
(.loadTrustMaterial nil (reify TrustStrategy
3131
(isTrusted [_ _ _] true)))
3232
(.build))
3333
:verifier NoopHostnameVerifier/INSTANCE})
3434

35-
(def ^SSLIOSessionStrategy insecure-socket-factory
35+
(def ^SSLConnectionSocketFactory insecure-socket-factory
3636
(let [{:keys [context verifier]} insecure-context-verifier]
3737
(SSLConnectionSocketFactory. ^SSLContext context
3838
^HostnameVerifier verifier)))

0 commit comments

Comments
 (0)