like this
This commit is contained in:
parent
9f2e2dea65
commit
0c68cf4357
@ -24,7 +24,6 @@ defmodule Pleroma.HTTP.Connection do
|
|||||||
middleware = [Tesla.Middleware.FollowRedirects]
|
middleware = [Tesla.Middleware.FollowRedirects]
|
||||||
adapter = Application.get_env(:tesla, :adapter)
|
adapter = Application.get_env(:tesla, :adapter)
|
||||||
options = options(opts)
|
options = options(opts)
|
||||||
IO.inspect(options)
|
|
||||||
Tesla.client(middleware, {adapter, options})
|
Tesla.client(middleware, {adapter, options})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ defmodule Pleroma.HTTP do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp get_conn_for_gun(url, options) do
|
defp get_conn_for_gun(url, options) do
|
||||||
case Pleroma.Gun.Connections.try_to_get_gun_conn(url) do
|
case Pleroma.Gun.Connections.get_conn(url) do
|
||||||
nil ->
|
nil ->
|
||||||
options
|
options
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user