another debug
This commit is contained in:
parent
8b26870809
commit
9f2e2dea65
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user