diff options
author | Loïc Hoguin <[email protected]> | 2020-10-21 19:15:48 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-10-21 20:17:18 +0200 |
commit | 465d072abf4a76104d4562ed15345b27fe9a0cff (patch) | |
tree | 853338dc133fda51ed65e74dedc81f845dc090de /src/gun_socks.erl | |
parent | 69f19635df64ea48af3120c9685f7ad51b338f8f (diff) | |
download | gun-465d072abf4a76104d4562ed15345b27fe9a0cff.tar.gz gun-465d072abf4a76104d4562ed15345b27fe9a0cff.tar.bz2 gun-465d072abf4a76104d4562ed15345b27fe9a0cff.zip |
Fix cookie handling when tunnel and origin schemes mismatch
The cookie_ignore_informational has been moved to http_opts and
http2_opts.
Also fix an issue when using 'protocols' in gun:open.
When connecting via TLS the protocol's options were
discarded.
Diffstat (limited to 'src/gun_socks.erl')
-rw-r--r-- | src/gun_socks.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gun_socks.erl b/src/gun_socks.erl index 752daec..5c89e26 100644 --- a/src/gun_socks.erl +++ b/src/gun_socks.erl @@ -20,7 +20,7 @@ -export([has_keepalive/0]). -export([init/4]). -export([switch_transport/3]). --export([handle/4]). +-export([handle/5]). -export([closing/4]). -export([close/4]). %% @todo down @@ -99,8 +99,8 @@ init(ReplyTo, Socket, Transport, Opts) -> switch_transport(Transport, Socket, State) -> State#socks_state{socket=Socket, transport=Transport}. -handle(Data, State, _, EvHandlerState) -> - {handle(Data, State), EvHandlerState}. +handle(Data, State, CookieStore, _, EvHandlerState) -> + {handle(Data, State), CookieStore, EvHandlerState}. %% No authentication. handle(<<5, 0>>, State=#socks_state{version=5, status=auth_method_select}) -> |