From 773f532b148eb0c9ca1e73c3b4ebaf6aa8337da9 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 7 Mar 2019 23:32:58 +0000 Subject: [PATCH] http: actually pass the options list to the Connection factory --- lib/pleroma/http/http.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index c6d86b3d3..c5f720bc9 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -42,7 +42,7 @@ def request(method, url, body \\ "", headers \\ [], options \\ []) do |> Builder.add_param(:body, :body, body) |> Builder.add_param(:query, :query, params) |> Enum.into([]) - |> (&Tesla.request(Connection.new(), &1)).() + |> (&Tesla.request(Connection.new(options), &1)).() rescue e -> {:error, e}