another debug

This commit is contained in:
Alex S 2019-08-14 14:45:21 +03:00 committed by Ariadne Conill
parent 8b26870809
commit 9f2e2dea65
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,9 @@ defmodule Pleroma.HTTP.Connection do
def new(opts \\ []) do def new(opts \\ []) do
middleware = [Tesla.Middleware.FollowRedirects] middleware = [Tesla.Middleware.FollowRedirects]
adapter = Application.get_env(:tesla, :adapter) adapter = Application.get_env(:tesla, :adapter)
Tesla.client(middleware, {adapter, options(opts)}) options = options(opts)
IO.inspect(options)
Tesla.client(middleware, {adapter, options})
end end
# fetch http options # fetch http options

View File

@ -12,8 +12,6 @@ defmodule Pleroma.ReverseProxy.Client.Tesla do
Keyword.get(opts, :adapter, []) Keyword.get(opts, :adapter, [])
|> Keyword.put(:body_as, :chunks) |> Keyword.put(:body_as, :chunks)
IO.inspect(adapter_opts)
with {:ok, response} <- with {:ok, response} <-
Pleroma.HTTP.request( Pleroma.HTTP.request(
method, method,