aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-04-16 14:44:23 +0200
committerLoïc Hoguin <[email protected]>2020-04-16 14:44:23 +0200
commit6599fc9a0ce1721271cc070f6d54a677d466c583 (patch)
treeb91135d92fd7b849aa88f06157b6f48d1c310417 /src/gun.erl
parente1a69b36b180a574c0ac314ced9613fdd52312cc (diff)
downloadgun-6599fc9a0ce1721271cc070f6d54a677d466c583.tar.gz
gun-6599fc9a0ce1721271cc070f6d54a677d466c583.tar.bz2
gun-6599fc9a0ce1721271cc070f6d54a677d466c583.zip
Add tests for cookie_ignore_informational option
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 6186aa2..f4f1fca 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -310,6 +310,8 @@ check_options([{connect_timeout, T}|Opts]) when is_integer(T), T >= 0 ->
check_options(Opts);
check_options([{cookie_store, {Mod, _}}|Opts]) when is_atom(Mod) ->
check_options(Opts);
+check_options([{cookie_ignore_informational, B}|Opts]) when is_boolean(B) ->
+ check_options(Opts);
check_options([{domain_lookup_timeout, infinity}|Opts]) ->
check_options(Opts);
check_options([{domain_lookup_timeout, T}|Opts]) when is_integer(T), T >= 0 ->
@@ -348,7 +350,7 @@ check_options([{socks_opts, ProtoOpts}|Opts]) when is_map(ProtoOpts) ->
Error ->
Error
end;
-check_options([{supervise, B}|Opts]) when B =:= true; B =:= false ->
+check_options([{supervise, B}|Opts]) when is_boolean(B) ->
check_options(Opts);
check_options([{tcp_opts, L}|Opts]) when is_list(L) ->
check_options(Opts);
@@ -358,7 +360,7 @@ check_options([{tls_handshake_timeout, T}|Opts]) when is_integer(T), T >= 0 ->
check_options(Opts);
check_options([{tls_opts, L}|Opts]) when is_list(L) ->
check_options(Opts);
-check_options([{trace, B}|Opts]) when B =:= true; B =:= false ->
+check_options([{trace, B}|Opts]) when is_boolean(B) ->
check_options(Opts);
check_options([{transport, T}|Opts]) when T =:= tcp; T =:= tls ->
check_options(Opts);