From 628c8d7ec08ff8bee9cf9ce9530221601f135d4f Mon Sep 17 00:00:00 2001 From: Yordis Prieto Lazo Date: Tue, 13 Sep 2022 13:40:11 -0400 Subject: [PATCH] fix: global example --- lib/tesla/adapter/mint.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tesla/adapter/mint.ex b/lib/tesla/adapter/mint.ex index d5889f5a..5274d44e 100644 --- a/lib/tesla/adapter/mint.ex +++ b/lib/tesla/adapter/mint.ex @@ -23,8 +23,9 @@ if Code.ensure_loaded?(Mint.HTTP) do use Tesla adapter Tesla.Adapter.Mint end + # set global custom cacertfile - config :tesla, Tesla.Adapter.Mint, cacert: ["path_to_cacert"] + config :tesla, adapter: {Tesla.Adapter.Mint, cacert: ["path_to_cacert"]} ``` ## Adapter specific options: