aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
committerLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
commit8b5f1609faffcf1166ca54c08df4ca9216c51993 (patch)
tree8360c67d59714c1641764debc2c074e4eaa90604 /src/gun_http2.erl
parent5e177270a2be530bbec55381d0fe66a252c3a998 (diff)
downloadgun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.gz
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.bz2
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.zip
Use public_key:cacerts_get/0 when possible
Also "fix" many TLS test failures due to yet more changes in the default options for TLS. Also small changes to make Dialyzer happy.
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 71e01d4..bfd2d31 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -585,7 +585,7 @@ headers_frame_connect(State=#http2_state{transport=Transport, opts=Opts, tunnel_
ProtoOpts = case Destination of
#{transport := tls} ->
Protocols = maps:get(protocols, Destination, [http2, http]),
- TLSOpts = gun:ensure_alpn_sni(Protocols, maps:get(tls_opts, Destination, []), DestHost),
+ TLSOpts = gun:ensure_tls_opts(Protocols, maps:get(tls_opts, Destination, []), DestHost),
HandshakeEvent = #{
stream_ref => RealStreamRef,
reply_to => ReplyTo,