http: actually pass the options list to the Connection factory
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 7 Mar 2019 23:32:58 +0000 (23:32 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 8 Mar 2019 22:56:16 +0000 (22:56 +0000)
lib/pleroma/http/http.ex

index c6d86b3d3768bc0ce2113b864a264bc977b88d89..c5f720bc9f756292f0c99d2c44500911ca19062f 100644 (file)
@@ -42,7 +42,7 @@ defmodule Pleroma.HTTP 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}