diff options
author | Loïc Hoguin <[email protected]> | 2020-04-16 14:44:23 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-04-16 14:44:23 +0200 |
commit | 6599fc9a0ce1721271cc070f6d54a677d466c583 (patch) | |
tree | b91135d92fd7b849aa88f06157b6f48d1c310417 /src/gun_ws.erl | |
parent | e1a69b36b180a574c0ac314ced9613fdd52312cc (diff) | |
download | gun-6599fc9a0ce1721271cc070f6d54a677d466c583.tar.gz gun-6599fc9a0ce1721271cc070f6d54a677d466c583.tar.bz2 gun-6599fc9a0ce1721271cc070f6d54a677d466c583.zip |
Add tests for cookie_ignore_informational option
Diffstat (limited to 'src/gun_ws.erl')
-rw-r--r-- | src/gun_ws.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_ws.erl b/src/gun_ws.erl index a2271a9..8be93e8 100644 --- a/src/gun_ws.erl +++ b/src/gun_ws.erl @@ -64,7 +64,7 @@ do_check_options([{closing_timeout, infinity}|Opts]) -> do_check_options(Opts); do_check_options([{closing_timeout, T}|Opts]) when is_integer(T), T > 0 -> do_check_options(Opts); -do_check_options([{compress, B}|Opts]) when B =:= true; B =:= false -> +do_check_options([{compress, B}|Opts]) when is_boolean(B) -> do_check_options(Opts); do_check_options([{default_protocol, M}|Opts]) when is_atom(M) -> do_check_options(Opts); @@ -81,7 +81,7 @@ do_check_options([Opt={protocols, L}|Opts]) when is_list(L) -> end; do_check_options([{reply_to, P}|Opts]) when is_pid(P) -> do_check_options(Opts); -do_check_options([{silence_pings, B}|Opts]) when B =:= true; B =:= false -> +do_check_options([{silence_pings, B}|Opts]) when is_boolean(B) -> do_check_options(Opts); do_check_options([{user_opts, _}|Opts]) -> do_check_options(Opts); |