From 6599fc9a0ce1721271cc070f6d54a677d466c583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 16 Apr 2020 14:44:23 +0200 Subject: Add tests for cookie_ignore_informational option --- src/gun_ws.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gun_ws.erl') 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); -- cgit v1.2.3