From df3e99e1688f36e8070707a2bdcccbae9c487991 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Wed, 13 May 2020 14:20:38 +0000 Subject: [PATCH] keep vendored edit for httpc ssl opts --- src/r3_hex_http_httpc.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/r3_hex_http_httpc.erl b/src/r3_hex_http_httpc.erl index c4b5d6f2..1e953f4b 100644 --- a/src/r3_hex_http_httpc.erl +++ b/src/r3_hex_http_httpc.erl @@ -13,7 +13,8 @@ request(Method, URI, ReqHeaders, Body, AdapterConfig) -> Profile = maps:get(profile, AdapterConfig, default), Request = build_request(URI, ReqHeaders, Body), - case httpc:request(Method, Request, [], [{body_format, binary}], Profile) of + case httpc:request(Method, Request, [{ssl, rebar_utils:ssl_opts(URI)}], + [{body_format, binary}], Profile) of {ok, {{_, StatusCode, _}, RespHeaders, RespBody}} -> RespHeaders2 = load_headers(RespHeaders), {ok, {StatusCode, RespHeaders2, RespBody}};