From d2a2d83f5d3521cf9dca701beb5f65a6db29e287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 10 Mar 2014 09:49:14 +0100 Subject: Fix the client_preferred_next_protocols option Was due to incorrect documentation before R16B03. Thanks Ingela for finding it! --- src/gun.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gun.erl') 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, -- cgit v1.2.3