Skip to content

Commit

Permalink
Merge pull request #65 from mikpe/verify-none-for-httpc-request
Browse files Browse the repository at this point in the history
pass verify_none to httpc:request
  • Loading branch information
onno-vos-dev authored Feb 28, 2024
2 parents 90bacec + e87a023 commit fbf8d26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/aws_credentials_httpc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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).
?PROFILE).

0 comments on commit fbf8d26

Please sign in to comment.