diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gun.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun.erl b/src/gun.erl index 8f056aa..4c60045 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -110,7 +110,7 @@ open(Host, Port) -> -spec open(inet:hostname(), inet:port_number(), opts()) -> {ok, pid()} | {error, any()}. -open(Host, Port, Opts) -> +open(Host, Port, Opts) when is_list(Host); is_atom(Host) -> case open_opts(Opts) of ok -> supervisor:start_child(gun_sup, [self(), Host, Port, Opts]); |