diff --git a/lib/growth/indicators/download.ex b/lib/growth/indicators/download.ex index bc8be3b..14b2d76 100644 --- a/lib/growth/indicators/download.ex +++ b/lib/growth/indicators/download.ex @@ -240,7 +240,16 @@ defmodule Growth.Indicators.Download do end def fetch!(url) do - case Req.get(url) do + req = + [url: url] + |> Keyword.merge( + :wabanex + |> Application.get_env(__MODULE__, []) + |> Keyword.get(:who_req_options, []) + ) + |> Req.new() + + case Req.get(req) do {:ok, %{status: 200, body: body}} -> body