aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-03-10 09:49:14 +0100
committerLoïc Hoguin <[email protected]>2014-03-10 09:49:14 +0100
commitd2a2d83f5d3521cf9dca701beb5f65a6db29e287 (patch)
tree4ba8ea7f58189c8a39b7c7d3d36ae8a009273328
parent5f2ddb084b12998162f002ca159b9badd2b84e67 (diff)
downloadgun-d2a2d83f5d3521cf9dca701beb5f65a6db29e287.tar.gz
gun-d2a2d83f5d3521cf9dca701beb5f65a6db29e287.tar.bz2
gun-d2a2d83f5d3521cf9dca701beb5f65a6db29e287.zip
Fix the client_preferred_next_protocols option
Was due to incorrect documentation before R16B03. Thanks Ingela for finding it!
-rw-r--r--src/gun.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 2f472dc..cff3522 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -258,7 +258,7 @@ init(Parent, Owner, Host, Port, Opts) ->
connect(State=#state{owner=Owner, host=Host, port=Port, type=ssl}, Retries) ->
Transport = ranch_ssl,
Opts = [binary, {active, false}, {client_preferred_next_protocols,
- client, [<<"spdy/3">>, <<"http/1.1">>], <<"http/1.1">>}],
+ {client, [<<"spdy/3">>, <<"http/1.1">>], <<"spdy/3">>}}],
case Transport:connect(Host, Port, Opts) of
{ok, Socket} ->
Protocol = gun_spdy,