aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorMaxim Krentovskiy <[email protected]>2015-07-21 20:48:18 +0300
committerLoïc Hoguin <[email protected]>2015-08-17 12:43:25 +0200
commita86901b2043646faa2446b3f259eacc3cbd3ee8d (patch)
treeed0661493fd9560544759baf25b07a7377c6060b /src/gun.erl
parent2722eca9048f990bd5e8d247d9dc2620320c6020 (diff)
downloadgun-a86901b2043646faa2446b3f259eacc3cbd3ee8d.tar.gz
gun-a86901b2043646faa2446b3f259eacc3cbd3ee8d.tar.bz2
gun-a86901b2043646faa2446b3f259eacc3cbd3ee8d.zip
Fix ssl:negotiated_next_protocol/1 is deprecated.
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 9ebb34a..2c9b586 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -483,7 +483,7 @@ connect(State=#state{host=Host, port=Port, opts=Opts, transport=Transport=ranch_
|maps:get(transport_opts, Opts, [])],
case Transport:connect(Host, Port, TransportOpts) of
{ok, Socket} ->
- {Protocol, ProtoOptsKey} = case ssl:negotiated_next_protocol(Socket) of
+ {Protocol, ProtoOptsKey} = case ssl:negotiated_protocol(Socket) of
{ok, <<"spdy/3", _/bits>>} -> {gun_spdy, spdy_opts};
_ -> {gun_http, http_opts}
end,