aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2018-12-02 16:58:38 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2018-12-04 14:03:32 +0300
commitec34de0c1fd58942c8ecefddef92696750b70420 (patch)
treedc8d86a675c16ebb0b9904827c71d775c6716cdc /lib
parent3ce16e5a56be01686a03f40931f666ac164df6e8 (diff)
downloadpleroma-ec34de0c1fd58942c8ecefddef92696750b70420.tar.gz
WebSub fix test
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/http/connection.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/http/connection.ex b/lib/pleroma/http/connection.ex
index 12667b663..f64d4e18e 100644
--- a/lib/pleroma/http/connection.ex
+++ b/lib/pleroma/http/connection.ex
@@ -1,5 +1,6 @@
defmodule Pleroma.HTTP.Connection do
@hackney_options [pool: :default]
+ @adapter Application.get_env(:tesla, :adapter)
@doc """
Configure a client connection
@@ -10,7 +11,7 @@ defmodule Pleroma.HTTP.Connection do
"""
@spec new(Keyword.t()) :: Tesla.Env.client()
def new(opts \\ []) do
- Tesla.client([], {Tesla.Adapter.Hackney, hackney_options(opts)})
+ Tesla.client([], {@adapter, hackney_options(opts)})
end
# fetch Hackney options