From e3b1a04d9431e7be3c62a1f1b86b48ddfaecace6 Mon Sep 17 00:00:00 2001 From: Dan Schultzer <1254724+danschultzer@users.noreply.github.com> Date: Wed, 22 Nov 2023 04:50:24 -0800 Subject: [PATCH] Fix bug caused by typo with using Req --- CHANGELOG.md | 4 ++++ lib/assent/strategy.ex | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcc442a..d45800e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.2.9 (TBA) + +- Fixed bug where `Req` was not used by default if included in project + ## v0.2.8 (2023-11-19) `Req` will be used by default if available in your project, otherwise `:httpc` will be used. diff --git a/lib/assent/strategy.ex b/lib/assent/strategy.ex index 5528dc2..47d8549 100644 --- a/lib/assent/strategy.ex +++ b/lib/assent/strategy.ex @@ -49,7 +49,7 @@ defmodule Assent.Strategy do @default_http_client Enum.find_value( [ - {Req1, Assent.HTTPAdapter.Req}, + {Req, Assent.HTTPAdapter.Req}, {:httpc, Assent.HTTPAdapter.Httpc} ], fn {dep, module} ->