From 24295a1bd1fb2cb1a9e98b7b85c5acba384a07d5 Mon Sep 17 00:00:00 2001 From: Kozlov Yakov Date: Wed, 7 Nov 2018 18:02:31 +0300 Subject: [PATCH] Fix Issue #21 --- src/lhttpc_client.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lhttpc_client.erl b/src/lhttpc_client.erl index 2fb2fbbc..a9b4a3df 100644 --- a/src/lhttpc_client.erl +++ b/src/lhttpc_client.erl @@ -153,7 +153,7 @@ execute(From, Host, Port, Ssl, Path, Method, Hdrs0, Body, Options) -> % get the socket connect settings from client or use defaults % unfold all atoms and allow users to overwrite a single param only DefOptions = proplists:unfold(application:get_env(lhttpc, connect_options, [])), - DefTimeout = proplists:get_value(connect_timeout, DefOptions, infinity), + DefTimeout = application:get_env(lhttpc, connect_timeout, infinity), UserOptions = proplists:unfold(proplists:get_value(connect_options, Options, [])), EffectiveTcpOptions0 = lists:ukeymerge(1, lists:ukeysort(1, UserOptions),