Browse Source

fix(scheme): update emqx_web_hook_actions.erl

turtleDeng 5 years atrás
parent
commit
2751fa6a41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx_web_hook/src/emqx_web_hook_actions.erl

+ 1 - 1
apps/emqx_web_hook/src/emqx_web_hook_actions.erl

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