fix(scheme): update emqx_web_hook_actions.erl

This commit is contained in:
turtleDeng 2021-01-16 18:25:48 +08:00
parent bf84686b76
commit 2751fa6a41
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ pool_opts(Params = #{<<"url">> := URL}) ->
#{host := Host0, #{host := Host0,
scheme := Scheme} = URIMap = uri_string:parse(binary_to_list(URL)), scheme := Scheme} = URIMap = uri_string:parse(binary_to_list(URL)),
Port = maps:get(port, URIMap, case Scheme of Port = maps:get(port, URIMap, case Scheme of
<<"https">> -> 443; "https" -> 443;
_ -> 80 _ -> 80
end), end),
PoolSize = maps:get(<<"pool_size">>, Params, 32), PoolSize = maps:get(<<"pool_size">>, Params, 32),