From e87a0238f576144825f486973cf6ee9144fce34d Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Thu, 22 Feb 2024 16:05:01 +0100 Subject: [PATCH] pass verify_none to httpc:request --- src/aws_credentials_httpc.erl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/aws_credentials_httpc.erl b/src/aws_credentials_httpc.erl index aa7c492..b9e75e5 100644 --- a/src/aws_credentials_httpc.erl +++ b/src/aws_credentials_httpc.erl @@ -84,8 +84,10 @@ request(Method, URL, RequestHeaders, Tries, Remaining, Errs) -> -spec make_request(method(), url(), [header()]) -> {ok, httpc_result()} | {error, any()}. make_request(Method, URL, RequestHeaders) -> + HttpOptions = [{timeout, ?TIMEOUT}, + {connect_timeout, ?CONNECT_TIMEOUT}, + {ssl, [{verify, verify_none}]}], httpc:request(Method, {URL, RequestHeaders}, - [{timeout, ?TIMEOUT}, - {connect_timeout, ?CONNECT_TIMEOUT}], % HTTP options + HttpOptions, [{body_format, binary}], % options - ?PROFILE). \ No newline at end of file + ?PROFILE).